Show all record in combobox (1 Viewer)

theinviter

Registered User.
Local time
Yesterday, 21:55
Joined
Aug 14, 2014
Messages
240
Hi Guys
need help
i have 2 combo box, if combo 1 updated will automatically filter combo2, but wanna if combo 1 is null then show all record in combo2.
i tried this code in query but not showing all record.

Nz([Forms]![Master_List]![Combo46],"*")

so what to do.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 12:55
Joined
May 7, 2009
Messages
19,245
Use this on ur filter:

[Fieldname] like Forms]![Master_List]![Combo46] & "*"
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 12:55
Joined
May 7, 2009
Messages
19,245
you may also try:

IIF(IsNull([Forms]![Master_List]![Combo46]), [FieldName], [Forms]![Master_List]![Combo46])
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 12:55
Joined
May 7, 2009
Messages
19,245
Same field as you are trying to filter.
 

Users who are viewing this thread

Top Bottom