Hi,
i'm trying to make a form to filter a table and open a data entry form with the filtered data ready for editing. i've got it working when filtering a 1 field but i'd like to filter the data by 3 fields and i can't get it right. the code i'm trying to use is
it works fine when just filtering one field like this:-
any light you guys can shed would be much appreciated
Wayne
i'm trying to make a form to filter a table and open a data entry form with the filtered data ready for editing. i've got it working when filtering a 1 field but i'd like to filter the data by 3 fields and i can't get it right. the code i'm trying to use is
Code:
DoCmd.OpenForm "Main", , , "[Admin District]='Corby'" And "[AgeRange]='31 - 50'" And "[Gender]='Male'"
it works fine when just filtering one field like this:-
Code:
DoCmd.OpenForm "Entry75+", , , "Ward='Beddington South'"
any light you guys can shed would be much appreciated
Wayne