I have a split form "frm_trajecten" with a few comboboxes to select the records which should be displayed in the lower part of the plit form.
One of the combo's is "cmb_prodjr"
It listst the years in the field [prodjaar] in the table "tbl_trajecten" trough a query called "Q_prodjaar" with unique values.
It lists;
empty
2012
2013
2014
2015
In the table "tbl_trajecten" the field [prodjaar] can be empty or filled with a number (year i.e. 2012).
Now, in the Query "Q_trajectne" (which is the bases for the form "frm_trajecten" i put in all fields of the table "tbl_trajecten". In the criteria part of the query, at the field "prodjaar" i have put in;
Expand|Select|Wrap|Line Numbers
- Like [Forms]![frm_trajecten]![cmb_prodjr] & "*"
When i select a year in the combobox [cmb_prodjr] it works fine.
However, when i leave the combobox empty, it does not do anything. I would then like to have it list all records.
Apparantly the & "*" part of the criteria does not work.
What should i put there instead ?
I hope to hear from you.
Pierre