Pass para to query from form

ppoindexter

Registered User.
Local time
Yesterday, 21:47
Joined
Dec 28, 2000
Messages
134
what do i add this statement so if a selection isnt made from a particular combo, the comob is ignored and the query uses only the values selected

[forms]![frmOne]![cmbOne]

something like this

[forms]![frmOne]![cmbOne] or is null ?

thanks
 
iif(isnull([forms]![frmOne]![cmbOne],"*",[forms]![frmOne]![cmbOne] )


Does this work?

kh
 
i get an error

wrong number of arguments...
 
iif(isnull([forms]![frmOne]![cmbOne]),"*",[forms]![frmOne]![cmbOne] )

???
 
the error went away
but...now the value isnt being passed to the query
 

Users who are viewing this thread

Back
Top Bottom