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

If X then INSERT INTO Y 1

Status
Not open for further replies.

sucoyant

IS-IT--Management
Sep 21, 2002
213
US
I'm having a bit of a problem with a query in Microsoft Access.

I need to pull data from the field 'todaysDate' that matches todays date. Then I need to place todays date into a field called 'dateSent'.

Any ideas?

----------------------------------------
Buddha. Dharma. Sangha.
 
Sounds like you can just put the current date into the datesent field.
 
This is only a template since I don't know what your fields are but try
Code:
   UPDATE tbl SET dateSent = Date{}
   WHERE  todaysDate = Date()
 
Golom: Thanks! Exactly what I needed.

I noticed though that you have Date{}, and Date().
Date() will work for both.

----------------------------------------
Buddha. Dharma. Sangha.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top