E
Emma
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?
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?