selection?

wh00t

Registered User.
Local time
Today, 16:08
Joined
May 18, 2001
Messages
264
I have a query which takes criteria from a form to generate a report, but what I would like is to make some of the form selection criteria optional

e.g. field in query called 'Plant' takes the information from the 'ProductionLocation' field in the selection form 'frmSCPSelect'

field in query called 'Product' takes the information from the 'Product' field in the selection form 'frmSCPSelect'

at the minute, I need to complete both fields in the form to produce records, but I would like to be able to select 'plant' and leave 'product' blank, and have the query produce the information for the selected plant.
 
got round it with IIF

IIF([forms]![form]![field] Is Null,
.[Field],[forms]![form]![field])
 

Users who are viewing this thread

Back
Top Bottom