if Qty Value is zero or less than

mabino79

Member
Local time
Today, 12:09
Joined
Nov 17, 2021
Messages
72
is there a way to do

if Qty Value is zero or less than, the row from the report should be deleted or hide.
 
Apply filter opening report.

DoCmd.OpenReport "reportname", , , "Qty>0"
 
Apply filter opening report.

DoCmd.OpenReport "reportname", , , "Qty>0"
where to write the code, in Report opening button or in a module
 
I would think button click event.
 
Now Pat, you KNOW that macros are the gateway drug of choice on the road to a full-blown VBA habit. ;)
 
Just to be serious for a moment, Pat, don't forget that for novices, Macros make more sense because they emulate ribbon-based actions. The fact that Access has a way to convert a lengthy Macro into VBA code just means that the Macro can be your quick-n-dirty method to get started and then come back later to clean it up. Which I must admit to having done more than once as a way to get something up fast and then fix it (via conversion) for version 2.
 

Users who are viewing this thread

Back
Top Bottom