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!

need help with INSERT statement

Status
Not open for further replies.
Sep 25, 2002
159
US
Hi everyone,

I have this series of statements here:

INSERT INTO 1_2_06 ( Issue_ID, Assigned_To)
SELECT Issue_ID, Assigned_To
FROM QPTActions
WHERE QPTActions.Entry_Date<=DateValue('1/2/2006') And QPTActions.Close_Date>DateValue('1/2/2006');

and it works fine but I would like to insert another value into a third column called 'ListType'. It would be a hardcoded value like this "QPT". How would I correctly add this to the statment I have now?

Thank you
 
INSERT INTO 1_2_06 ( Issue_ID, Assigned_To, ListType)
SELECT Issue_ID, Assigned_To, 'QPT'
FROM QPTActions
WHERE QPTActions.Entry_Date<=DateValue('1/2/2006') And QPTActions.Close_Date>DateValue('1/2/2006');
 
Awesome, sometimes the solution is so easy...

thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top