D
Doctor
On a Contacts form, I want to be able to register a contact for an event, and
when I click on the button I want the contact's information to appear on the
registration form. I have this code that I thought worked, but only opens up
a blank registration form.
Any help would be greatly appreciated.
Private Sub LLCReg_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "LLCRegistrations"
stLinkCriteria = "[ContactID]=" & Me![ContactID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
Thanks in advance.
when I click on the button I want the contact's information to appear on the
registration form. I have this code that I thought worked, but only opens up
a blank registration form.
Any help would be greatly appreciated.
Private Sub LLCReg_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "LLCRegistrations"
stLinkCriteria = "[ContactID]=" & Me![ContactID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
Thanks in advance.