I am working on the applications that pass 2 arguments from Form1 to Form2. I created Form 2 using Access wizard (I created form and subform).
Attached is a code created but Access wizard:
stDocName = "Offer USA"
stLinkCriteria = "[Dtl_ID]=" & Me![Promo]
DoCmd.OpenForm stDocName, , , stLinkCriteria
I need to add 1 more parameters to open Form2. I created something like...
stLinkCriteria = "[Dtl_ID]=" & Me![Promo] & "[Dtl_Name]=' & Me![Text18]"
And I am getting an error that the syntax is not correct
Please HELP
Regards,
Goldy
Attached is a code created but Access wizard:
stDocName = "Offer USA"
stLinkCriteria = "[Dtl_ID]=" & Me![Promo]
DoCmd.OpenForm stDocName, , , stLinkCriteria
I need to add 1 more parameters to open Form2. I created something like...
stLinkCriteria = "[Dtl_ID]=" & Me![Promo] & "[Dtl_Name]=' & Me![Text18]"
And I am getting an error that the syntax is not correct
Please HELP
Regards,
Goldy