Subform filtering

mcgooie

Registered User.
Local time
Today, 14:48
Joined
Sep 12, 2006
Messages
11
i have a form with a subform on it. the subform has 2 columns - one of which is hidden. Assume the other column is called "type".

i was wondering if there is an easy way to 'hide' records in the subform which have "type" = "Car"

thanks
 
One way to do it:

In the "On Load" property of your subform, filter out any record
with type = "Car".

Code:

Me.recordsource = "SELECT * from tableName WHERE Type <> 'Car' "
 
where is the "On Load" function?? i can only see "On Enter" and "On Exit" under the Event tab?


thanks for code btw
 

Users who are viewing this thread

Back
Top Bottom