G
Gus Chuch
I using a SQL INSERT INTO to add new customers from a mailing list table to
my customer table and it works OK. But I have a field in my customer table
called STATUS that I need to insert a value of ‘ACTIVE’ for the new customer.
Any ideals on how would I modify this SQL statement to insert this valve?
strSQL = "INSERT INTO tblCustomer ( Name, Address, City, State, Zip,
Telephone_Number, County, Customer_Type )" & _
"SELECT tblMailingList.Name, tblMailingList.Address1,
tblMailingList.CITY, tblMailingList.STATE, tblMailingList.ZIP,
tblMailingList.[Telephone Number], tblMailingList.County,
tblMailingList.[Location Type]" & _
"FROM tblMailingList " & _
"WHERE
(((tblMailingList.Name)=[Forms]![frmMailingList]![txtName]));"
my customer table and it works OK. But I have a field in my customer table
called STATUS that I need to insert a value of ‘ACTIVE’ for the new customer.
Any ideals on how would I modify this SQL statement to insert this valve?
strSQL = "INSERT INTO tblCustomer ( Name, Address, City, State, Zip,
Telephone_Number, County, Customer_Type )" & _
"SELECT tblMailingList.Name, tblMailingList.Address1,
tblMailingList.CITY, tblMailingList.STATE, tblMailingList.ZIP,
tblMailingList.[Telephone Number], tblMailingList.County,
tblMailingList.[Location Type]" & _
"FROM tblMailingList " & _
"WHERE
(((tblMailingList.Name)=[Forms]![frmMailingList]![txtName]));"