Hi everyone,
This database is experimental, with made-up data, but eventually, there would be very many records, and the aim would be to enter a auto manufacturer year, from this data the records are filtered so that only the records matching the year will show, then a combo allows me to enter a specific auto manufacturer, so now the only records showing will be the ones matching the entered year AND the selected manufacturer. From then I would proceed to select an auto manufacturer model from another combo box, and so on.
The form as it is at present does filter properly after I've entered the year, but after that, I need to filter again after having additionally selected a manufacturer from a combo box.
So, at first I filter by year, then I filter by year AND by manufacturer.
The syntax to filter by one parameter is fairly simple, but the syntax to filter by more than one parameter gets a bit more complex by way of parentheses.
I can filter the form by year and by manufacturer, and I've left the filter string commented out in the VB code, but that string is "static" with pre-defined/hard-coded parameters. I've tried to modify the functional filter string by removing the static values and adding variables to it (year and manufacturer), but can't figure out the proper mix/placement of quotation marks (would I even need single quotes in there?).
I've spent hours rearranging the quotation marks, but can't seem to figure out the proper positioning.
Am I on a wild-goose chase?
Lemme guess, I should be using a different method to achieve the same results... using recordsets or such? I think I tried a recordset approach a few days ago and couldn't get anywhere, right away as the compiler entered the code, I was getting something about a type not defined or something?
Thanking you in advance,
Richard
P.S. For crying out loud! I forgot to save it in 2003 format or something... sorry.