Im trying to produce a form in a database that will filter information dependant on the contents of two text boxes on the form. One box is UserID and the other is Date. I would to bebale to filter the data by using a case statement that check the boxes and decide which query to use.
i.e. Pseudo code.
Case - UserID not null and Date not null
form recordsource = qryUserAndDateFilter
refresh
Case UserID null and Date not null
form recordsource = qryDateFilter
refresh
Case - UserID not null and Date null
form recordsource = qryUserFilter
refresh
Case - UserID null and Date null
form recordsource = qryNoFilter
refresh
any ideas?
"My God! It's full of stars...
i.e. Pseudo code.
Case - UserID not null and Date not null
form recordsource = qryUserAndDateFilter
refresh
Case UserID null and Date not null
form recordsource = qryDateFilter
refresh
Case - UserID not null and Date null
form recordsource = qryUserFilter
refresh
Case - UserID null and Date null
form recordsource = qryNoFilter
refresh
any ideas?
"My God! It's full of stars...