A
Asib
I'm relatively new to VBA. But i have adapted Allen Browne's Search form to
my main form. It works great. If I place the command btn on the main form
with this code
Dim strWhere As String
If Me.FilterOn Then strWhere = Me.Filter
DoCmd.OpenReport "Old Report", acViewPreview, , strWhere
It works fine. But i have been forced (because of space issues) to create a
popup form to hold all my various report creation command buttons. So i know
why its not working when placed on the new form, obviously the "Me."
declaration. But i cannot for the life of me figure out how to properly
reference the "strWhere" from the main form when opening the report from the
command button on the seperate form. Any assistance is greatly appretiated.
Thank you in advance.
my main form. It works great. If I place the command btn on the main form
with this code
Dim strWhere As String
If Me.FilterOn Then strWhere = Me.Filter
DoCmd.OpenReport "Old Report", acViewPreview, , strWhere
It works fine. But i have been forced (because of space issues) to create a
popup form to hold all my various report creation command buttons. So i know
why its not working when placed on the new form, obviously the "Me."
declaration. But i cannot for the life of me figure out how to properly
reference the "strWhere" from the main form when opening the report from the
command button on the seperate form. Any assistance is greatly appretiated.
Thank you in advance.