Hi,
the problem is somewhat complex - I hope I can describe it clear enough.
I have three unbound comboboxes to allow the user to filter the records of a form.
The first combobox 'fields' displays the field list of the related underlying tables in the dropwdown list - most of which are of type 'text', but some are 'number's or 'date's (and here comes the problem). The recordsource is of type 'field list'.
The second combobox 'criteria' has a value list with the search criteria, like '=', '>' or '<>' in the drowdown list.
The (problematic) third combobox 'value' has a recordsource with the actual values of the field which has been selected with combobox 'fields', and can either show text, numbers or dates in the dropdown list.
All comboboxes are limited-to-list.
All comboboxes display the text "Select" when fresh - i.e. before the process, and when the process is finished.
Now the problem: in case the third combobox 'value' has displayed strings in the dropdown list there is no problem. It will accept the default "SELECT", but also number or date entries provided/selected from the actual dropwdown list. However, if it has displayed numbers or dates in a previous run, it does not accept the 'defaultvalue'
"SELECT" or any other string, just again dates or numbers, respectively.
My question: is there any way to ''clear'' the combobox, so that it takes any value provided from the recordsource (but limit to list is kept)?
Thanks for any input, have spent many unfruitful hours on this...
georgp
the problem is somewhat complex - I hope I can describe it clear enough.
I have three unbound comboboxes to allow the user to filter the records of a form.
The first combobox 'fields' displays the field list of the related underlying tables in the dropwdown list - most of which are of type 'text', but some are 'number's or 'date's (and here comes the problem). The recordsource is of type 'field list'.
The second combobox 'criteria' has a value list with the search criteria, like '=', '>' or '<>' in the drowdown list.
The (problematic) third combobox 'value' has a recordsource with the actual values of the field which has been selected with combobox 'fields', and can either show text, numbers or dates in the dropdown list.
All comboboxes are limited-to-list.
All comboboxes display the text "Select" when fresh - i.e. before the process, and when the process is finished.
Now the problem: in case the third combobox 'value' has displayed strings in the dropdown list there is no problem. It will accept the default "SELECT", but also number or date entries provided/selected from the actual dropwdown list. However, if it has displayed numbers or dates in a previous run, it does not accept the 'defaultvalue'
"SELECT" or any other string, just again dates or numbers, respectively.
My question: is there any way to ''clear'' the combobox, so that it takes any value provided from the recordsource (but limit to list is kept)?
Thanks for any input, have spent many unfruitful hours on this...
georgp