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
|
|||
|
|||
transfer a field using button
Hi I have a button which opens a form called Second Form; this form has a
client ID and the main form also has a client ID. When I create a new form, it gives me a client ID however what I want is the client ID to be generated from the first form. HEre's the code generated: Private Sub Ctl1Y_Form_Click() On Error GoTo Err_Ctl1Y_Form_Click Dim stDocName As String Dim stLinkCriteria As String stDocName = "Second Form" stLinkCriteria = "[Client ID]=" & "'" & Me![Client ID] & "'" DoCmd.OpenForm stDocName, , , stLinkCriteria Exit_Ctl1Y_Form_Click: Exit Sub Err_Ctl1Y_Form_Click: MsgBox Err.Description Resume Exit_Ctl1Y_Form_Click End Sub Can anyone show me how to get the second form's data based on client ID? |
Thread Tools | |
Display Modes | |
|
|