G
Guest
hello,
i'm trying to write my first report, and i want avoid to enter a parameter
value in the input message. here is my code:
a) param1 is the parameter i have in my query
Dim stCriteria As String
Dim stDocName As String
DIM param 2 as string
param2 = "clx90001"
stDocName = "str1"
stCriteria = "[param1]=" & param2
DoCmd.OpenReport stDocName, acViewPreview, , stCriteria
i'm trying to write my first report, and i want avoid to enter a parameter
value in the input message. here is my code:
a) param1 is the parameter i have in my query
Dim stCriteria As String
Dim stDocName As String
DIM param 2 as string
param2 = "clx90001"
stDocName = "str1"
stCriteria = "[param1]=" & param2
DoCmd.OpenReport stDocName, acViewPreview, , stCriteria