P
Pelton98
What is the best way to only allow active choices in a combobox..
I have a combobox referred to a table that has an end date for the code. I
want only codes to show that have an end date that is null or > Date()
I have been able to do this but for historic records that used the old value
won't display because they aren't in the record source.
I have tried several different methods one is On current select the ones I
want or where the Code Id is equal to Forms.Code.value. This method works
but the records source must requery on every record change.
I also tried onfocus and lostfocus by changing the record source to only
active on got focus and show all when lost focus, but if you scoll through
records and have focus of this field while scolling it won't show the
historic codes.
Am stuck what is the best solution. I am thinking my onfocus and lostfocus
may work and oncurrent for the form set the focus to another field
automatically.
I have a combobox referred to a table that has an end date for the code. I
want only codes to show that have an end date that is null or > Date()
I have been able to do this but for historic records that used the old value
won't display because they aren't in the record source.
I have tried several different methods one is On current select the ones I
want or where the Code Id is equal to Forms.Code.value. This method works
but the records source must requery on every record change.
I also tried onfocus and lostfocus by changing the record source to only
active on got focus and show all when lost focus, but if you scoll through
records and have focus of this field while scolling it won't show the
historic codes.
Am stuck what is the best solution. I am thinking my onfocus and lostfocus
may work and oncurrent for the form set the focus to another field
automatically.