pantscat
Registered User.
- Local time
- Today, 22:01
- Joined
- Jun 23, 2003
- Messages
- 11
Filter Report to eliminate blanks... using VBA! (help!)
Hello all,
I'm currently playing around with a school report system and I have a problem whereby not every pupil studies every subject - and so I want to stop the "blank" reports from printing.
I thought that perhaps I could it using the "On Open" event on the report with something like this:
DoCmd.ApplyFilter , ("Me.txt_art_att" > "0")
"txt_art_att" is a text box that gets the pupils' Art score (from the results table) using the dlookup function.
I guess rather than using "> 0" something like "Is not null" would be better but I'm not sure how to do that... still learning to play VBA by ear....
Any advice would be gratefully received,
Thanks,
Ant
Hello all,
I'm currently playing around with a school report system and I have a problem whereby not every pupil studies every subject - and so I want to stop the "blank" reports from printing.
I thought that perhaps I could it using the "On Open" event on the report with something like this:
DoCmd.ApplyFilter , ("Me.txt_art_att" > "0")
"txt_art_att" is a text box that gets the pupils' Art score (from the results table) using the dlookup function.
I guess rather than using "> 0" something like "Is not null" would be better but I'm not sure how to do that... still learning to play VBA by ear....
Any advice would be gratefully received,
Thanks,
Ant
Last edited: