Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filter Or Populate List Box According to Two Date Fields

Status
Not open for further replies.

StanJx

Programmer
Jun 2, 2016
29
0
0
LK
Hi, This maybe something simple but I couldn't figure it out yet . I have a list box with two date columns (EntryDate & RequestedDate). I need the list box to show records according to both dates.

For Example

Entry 1
EntryDate 9/12/2016
RequestedDate 9/13/2016

Entry 2
EntryDate 9/13/2016
RequestedDate 9/13/2016

Entry 3
EntryDate 9/12/2016
RequestedDate 9/12/2016


List box on the 13th should show entries 1 & 2. The list box on the 12th should show entries 1 & 3..

Would really appreciate your advice.
 
i dont know what fields you want to display
burt your rowsource should be something like
Code:
Select field1,field2,...
from tablename
where EntryDate = date()
union
Select field1,field2,...
from tablename
where RequestedDate = date()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top