I have a form, mainform, to be used as input form.
Assume I have fileds ID and Name to control the data record on another form, form1.
I used codes like this
stLinkCriteria = "[ID] = " & Me.ID.Value And "Name = " & Me("ComboName").Value
DoCmd.OpenForm stDocName, , , stLinkCriteria
But got type mismatch for And "Name = " & Me("ComboName").Value
Anybody can help?
Thanks a lot!
swingXH
Assume I have fileds ID and Name to control the data record on another form, form1.
I used codes like this
stLinkCriteria = "[ID] = " & Me.ID.Value And "Name = " & Me("ComboName").Value
DoCmd.OpenForm stDocName, , , stLinkCriteria
But got type mismatch for And "Name = " & Me("ComboName").Value
Anybody can help?
Thanks a lot!
swingXH