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

Simple Auto populate to an Append Query Question 1

Status
Not open for further replies.

iuianj07

Programmer
Sep 25, 2009
293
US
Hello guys,

I need help, I have a simple append query:
Code:
INSERT INTO tblLoans (LoanNumber)
SELECT tblCopy.LoanNumber
FROM tblCopy;

my question though is, in tblLoans there is a RushRequest field... any what I want to do is that whenever I run the append query above... the RushRequest field in tblLoans will all default to "No" for the new records appended... I only know how to set to default to "No" when creating new records (via form properties) but I don't know how to default to "No" for appended records...

Any help is greatly appreciated...

thanks...
 
INSERT INTO tblLoans (LoanNumber,RushRequest)
SELECT LoanNumber, False AS A
FROM tblCopy

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Hello,

I ran the query you posted, and instead of "No" it is returning 0 for RushRequest field...

Thanks
 
If RushRequest is text
INSERT INTO tblLoans (LoanNumber,RushRequest)
SELECT LoanNumber, 'No' AS A
FROM tblCopy

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thanks PHV,

That did the trick... forgot to mention that it is text... because possible data in there are either No, SameDayRush and 1-5DayRush.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top