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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display list w/ today's date only

Status
Not open for further replies.

mgifford

Programmer
Jun 3, 2004
30
US
I need to create a select statement where the only things listed are where the date field matches today's date only.

What else do I need?

sSQL="Select * from PRObs Where [Date] = ??????How do I only display the current date match??????
 
Code:
sSQL="Select * from PRObs Where [Date] = Date()


Skip,
[sub]
[glasses] [red]Be advised:[/red] Researchers have found another Descartes trueism, "Cogito ergo spud."
"I think; therefore, I YAM!
[tongue][/sub]
 
THANK YOU, THANK YOU, THANK YOU!!!! I knew it was something simple but couldn't find an example of it in any of my other pages or books. BLESS YOU!!!
 
I'd be careful about using RESERVE WORDS as field and variable names.

DATE is a reserve word!

Skip,
[sub]
[glasses] [red]Be advised:[/red] Researchers have found another Descartes trueism, "Cogito ergo spud."
"I think; therefore, I YAM!
[tongue][/sub]
 
Thanks for the tip! Still learning new things everyday!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top