Filtering the list in a combo box from a form

G

Guest

Hi All,

I have a combo box with a record set based on a table tblJobNumbers. What I
want to do is to be able to filter this recordset by a date field
'jnFinishDate' so that you can show either all job records or records without
a date field (null) and with a date within the last six months. I want to be
able to filter from a form so that it changes the combo box list accordingly.
I hope this makes sense.

Thanks
Matt
 
J

Jeff Boyce

Matt

One approach would be to use an option group (if your form has the room for
it), or a combo box (if space is at a premium). Either way, in the
AfterUpdate event of the control, (re-)set the query that underlies the
RowSource property of the combo box you mentioned.

--
Regards

Jeff Boyce
Microsoft Office/Access MVP


Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/

Microsoft Registered Partner
https://partner.microsoft.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top