G
grep
I've got a form frmCompanies, with a subform sfrmCompContacts. The
subform shows all the contacts associated with a company. There's also a
form for Contacts (frmContacts).
I'd like to be able to double-click on the records in sfrmCompContacts
and have that contact's record open in frmContacts.
The problem is passing the link criteria. Here's what I'm trying:
dim stDocName, stLinkCriteria as string
stDocName = "frmContacts"
stLinkCriteria = "ContactID = Me.ContactID"
DoCmd.OpenForm frmContacts, , , stLinkCriteria
It doesn't work. It comes up with a box asking for the parameter for
Me.ContactID.
What am I doing wrong?
grep
subform shows all the contacts associated with a company. There's also a
form for Contacts (frmContacts).
I'd like to be able to double-click on the records in sfrmCompContacts
and have that contact's record open in frmContacts.
The problem is passing the link criteria. Here's what I'm trying:
dim stDocName, stLinkCriteria as string
stDocName = "frmContacts"
stLinkCriteria = "ContactID = Me.ContactID"
DoCmd.OpenForm frmContacts, , , stLinkCriteria
It doesn't work. It comes up with a box asking for the parameter for
Me.ContactID.
What am I doing wrong?
grep