Janet Thomas
Registered User.
- Local time
- Today, 22:33
- Joined
- Aug 15, 2002
- Messages
- 20
I am opening a report from a command button on my form. (I use this same report from several different forms so I don't want to refer to the form in the query in the report.) My report is only based on one table - called "ICT Status". I thought this was simple - just put the where clause in the OpenReport for the event procedure for the command button. So I have this:
stDocName = "ICT Status Print Page"
DoCmd.OpenReport stDocName, acPreview, , [ICT Status.Dfee Number] = Forms![ICT Status Page 1]![Dfes]
However, I can't get this to work. My report returns every record in the ICT Status table. No errors or anything - just seems to ignore it. Can anyone tell me what I'm missing?
Thanks..
stDocName = "ICT Status Print Page"
DoCmd.OpenReport stDocName, acPreview, , [ICT Status.Dfee Number] = Forms![ICT Status Page 1]![Dfes]
However, I can't get this to work. My report returns every record in the ICT Status table. No errors or anything - just seems to ignore it. Can anyone tell me what I'm missing?
Thanks..