I have an issue with a passing arguments in Access. Here is a problem description.
I have Form1 and Form2 . Form2 calls Forms2 and pass 2 arguments. Both forms were aerated with access wizard.
Attached is VBA code:
stDocName = "Offer USA"
stLinkCriteria = "[Dtl_ID]=" & Me![Promo] & " And [Dtl_Name]=" & Me![Text18]
DoCmd.OpenForm stDocName, , , stLinkCriteria
The problem is that I am getting a window where I have to manually enter the second argument.
Any ideas how to get rid off the parameter window??
Thank you ?)
I have Form1 and Form2 . Form2 calls Forms2 and pass 2 arguments. Both forms were aerated with access wizard.
Attached is VBA code:
stDocName = "Offer USA"
stLinkCriteria = "[Dtl_ID]=" & Me![Promo] & " And [Dtl_Name]=" & Me![Text18]
DoCmd.OpenForm stDocName, , , stLinkCriteria
The problem is that I am getting a window where I have to manually enter the second argument.
Any ideas how to get rid off the parameter window??
Thank you ?)