Hi
I am using Access 2000, ADO, and I have an on-click procedure that updates some tables and at the end calculates two numbers and prints a report. I am using these two numbers as a parameter to produce a reference report for my users using Between .. AND in the reports record source.
Note that all these run in the same procedure, with some messages to guide the used in between.
I want to automatically pass these values to the report without the user having to know about it.
Some code I am using is:
MsgBox "Number A" & I & " and " & P & "." & vbCrLf & "Number B.", vbInformation, "Note!"
Dim stDocName As String
stDocName = "InvNoStatusChSend"
DoCmd.OpenReport stDocName, acViewNormal
Thanks!
I am using Access 2000, ADO, and I have an on-click procedure that updates some tables and at the end calculates two numbers and prints a report. I am using these two numbers as a parameter to produce a reference report for my users using Between .. AND in the reports record source.
Note that all these run in the same procedure, with some messages to guide the used in between.
I want to automatically pass these values to the report without the user having to know about it.
Some code I am using is:
MsgBox "Number A" & I & " and " & P & "." & vbCrLf & "Number B.", vbInformation, "Note!"
Dim stDocName As String
stDocName = "InvNoStatusChSend"
DoCmd.OpenReport stDocName, acViewNormal
Thanks!