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

Newbie SQL help needed

Status
Not open for further replies.

maverickmonster

Programmer
May 25, 2004
194
GB

I have made this SQL query and need help finishing it off, I want to make the table report_details with all the data from detail table where the table today field today is the same as table details from target completion date.
Code:
INSERT INTO report_details
SELECT *
FROM details
WHERE [today]=[details]![target completion date];

Thanks in advance

Maverickmonster
 

INSERT INTO report_details
SELECT *
FROM details
WHERE (((details.[target completion date]=[today]));

Mordja

ps what is [today] supposed to represent field or input ?
 
Perhaps something like this ?
INSERT INTO report_details
SELECT *
FROM details
WHERE [target completion date]=Date();

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top