A
Angi
Last question...for now!
I've created an Add Contact button on my company form. All my tables
are linked by CoID. When I click on the button, it's supposed to open
the ContactMain form in Add mode and populate the CoID with the current
CoID. It opens the form, but it doesn't carry over the CoID. This
code works other places in my db. What am I doing wrong???
Private Sub cmdAddContact_Click()
DoCmd.OpenForm "ContactMain", , , "[CoID]=" & Me![CompMain.CoID],
acFormAdd
End Sub
TIA
I've created an Add Contact button on my company form. All my tables
are linked by CoID. When I click on the button, it's supposed to open
the ContactMain form in Add mode and populate the CoID with the current
CoID. It opens the form, but it doesn't carry over the CoID. This
code works other places in my db. What am I doing wrong???
Private Sub cmdAddContact_Click()
DoCmd.OpenForm "ContactMain", , , "[CoID]=" & Me![CompMain.CoID],
acFormAdd
End Sub
TIA