If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Question abt POP form to current record details...
good day all,
I have a frmchecking acct that has ID, DATE, Description, Debit, CRedit, and the pop up form has Acct Type, Reference, transaction notes. I created a button to open the form to the current record based on ID, and for a test I put the field ID visible on the pop up form (frmdetails), but when the form opens from the current record, the ID Still shows (autonumber) and doesn't "go to" the current record details? Here is my code: Private Sub Command28_Click() On Error GoTo Err_Command28_Click Dim stDocName As String Dim stLinkCriteria As String stDocName = "frmcheckingAdd/Edit" stLinkCriteria = "[ID]=" & Me![ID] DoCmd.OpenForm stDocName, , , stLinkCriteria Exit_Command28_Click: Exit Sub Err_Command28_Click: MsgBox Err.Description Resume Exit_Command28_Click End Sub Any suggestions? Thanks, Brook |
#2
|
|||
|
|||
Question abt POP form to current record details...
As long as your ID is numeric that should work fine as long
as the form calling it is on a record itself. Your pop-up form isn't set to be DataEntry by chance, is it? The (Autonumber) display usually indicates that it is a new record waiting to be filled in. -- Gary Miller Sisters, OR "Brook" wrote in message ... good day all, I have a frmchecking acct that has ID, DATE, Description, Debit, CRedit, and the pop up form has Acct Type, Reference, transaction notes. I created a button to open the form to the current record based on ID, and for a test I put the field ID visible on the pop up form (frmdetails), but when the form opens from the current record, the ID Still shows (autonumber) and doesn't "go to" the current record details? Here is my code: Private Sub Command28_Click() On Error GoTo Err_Command28_Click Dim stDocName As String Dim stLinkCriteria As String stDocName = "frmcheckingAdd/Edit" stLinkCriteria = "[ID]=" & Me![ID] DoCmd.OpenForm stDocName, , , stLinkCriteria Exit_Command28_Click: Exit Sub Err_Command28_Click: MsgBox Err.Description Resume Exit_Command28_Click End Sub Any suggestions? Thanks, Brook |
#3
|
|||
|
|||
Question abt POP form to current record details...
Hey Brook,
In your Do.Cmd statement try adding: DoCmd.OpenForm stDocName, , , stLinkCriteria,acFormEdit and see what happens. HTH, Shane Brook wrote: good day all, I have a frmchecking acct that has ID, DATE, Description, Debit, CRedit, and the pop up form has Acct Type, Reference, transaction notes. I created a button to open the form to the current record based on ID, and for a test I put the field ID visible on the pop up form (frmdetails), but when the form opens from the current record, the ID Still shows (autonumber) and doesn't "go to" the current record details? Here is my code: Private Sub Command28_Click() On Error GoTo Err_Command28_Click Dim stDocName As String Dim stLinkCriteria As String stDocName = "frmcheckingAdd/Edit" stLinkCriteria = "[ID]=" & Me![ID] DoCmd.OpenForm stDocName, , , stLinkCriteria Exit_Command28_Click: Exit Sub Err_Command28_Click: MsgBox Err.Description Resume Exit_Command28_Click End Sub Any suggestions? Thanks, Brook -- Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/For...forms/200512/1 |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Need Help In Printing Current Record in Specific Report | RNUSZ@OKDPS | Setting Up & Running Reports | 1 | May 16th, 2005 09:06 PM |
strategy for data entry in multiple tables | LAF | Using Forms | 18 | April 25th, 2005 04:04 AM |
Strange stLinkCriteria behaviour on command button | Anthony Dowd | Using Forms | 3 | August 21st, 2004 03:01 AM |
Transferring Current Record From One Form To Another | Abilly | General Discussion | 1 | August 3rd, 2004 01:05 PM |
Recordset in subform based on field in parent form | Lyn | General Discussion | 15 | June 14th, 2004 03:10 PM |