M
mpfohl
I can't quite seem to use open arguments correctly. I have access 2003
but I want to make an MDE file at the end which I believe means I want
to continue saving my database in access 2000 format.
when I click a button on my form I want it to pass a string into the
report it is opening up. I've dumbed down the code as much as I can
below to simply print the text being passed into the report but it
still won't work. If I change "cat" to 1 (or any other integer) it
works. if i change the code to '(Cancel as String)' it still doesn't
work. What am I missing?
the code I have for the form is:
Private Sub tempTestbutton_Click()
Dim stDocName As String
stDocName = "my reports name"
DoCmd.OpenReport stDocName, acPreview, , , , "cat"
' where cat is the temparary string i'm trying to test by passing
into the report
end sub
the code for the report is:
Private Sub Report_Open(cancel As Integer)
msgbox me.OpenArgs
End Sub
but I want to make an MDE file at the end which I believe means I want
to continue saving my database in access 2000 format.
when I click a button on my form I want it to pass a string into the
report it is opening up. I've dumbed down the code as much as I can
below to simply print the text being passed into the report but it
still won't work. If I change "cat" to 1 (or any other integer) it
works. if i change the code to '(Cancel as String)' it still doesn't
work. What am I missing?
the code I have for the form is:
Private Sub tempTestbutton_Click()
Dim stDocName As String
stDocName = "my reports name"
DoCmd.OpenReport stDocName, acPreview, , , , "cat"
' where cat is the temparary string i'm trying to test by passing
into the report
end sub
the code for the report is:
Private Sub Report_Open(cancel As Integer)
msgbox me.OpenArgs
End Sub