pantscat
Registered User.
- Local time
- Today, 22:03
- Joined
- Jun 23, 2003
- Messages
- 11
Apologies if this is a common post but I have searched and tried to find an answer to this but I cannot.
Oh.. and hi!
I am trying to add a button to one of my forms so that "onclick" it will open a report and filter it based upon the content of the form.
I have tried to use the following code:
DoCmd.OpenReport "rpt_CC_preview", acViewPreview, , [Subject] = Me.Form![Subject]
... but it does not seem to work properly, it opens the form but does not match the "Subject" fields.
I guess it is a syntax prob but I'm rather new to this sort of thing!
Any advice would be gratefully received,
Ant
Oh.. and hi!
I am trying to add a button to one of my forms so that "onclick" it will open a report and filter it based upon the content of the form.
I have tried to use the following code:
DoCmd.OpenReport "rpt_CC_preview", acViewPreview, , [Subject] = Me.Form![Subject]
... but it does not seem to work properly, it opens the form but does not match the "Subject" fields.
I guess it is a syntax prob but I'm rather new to this sort of thing!
Any advice would be gratefully received,
Ant