jasonstewart
Programmer
I have two tables and I need to fill the [Customers].Name, Address1, Address2, City, State, Zip, CustID into the [Orders] table in the same named fields using a drop down in a form using either CustID, or Name dropdowns. I have a seperate query that runs to select the respective address1, address2,...for any certain customer name and that seems to work in the form but it doesn't insert the values into the orders table. I select a customer from the drop down and all the information is displayed on the screen but if I goto the table nothing has been saved but the CustID(keyed). Here is my SQL, any help would be appreciated.
UPDATE Orders INNER JOIN Customers ON [Customers].[CustID]=[Orders].[CustID] SET Customers.Name = [Orders].[Name], Customers.Address1 = [Orders].[Address1], Customers.Address2 = [Orders].[Address2], Customers.City = [Orders].[City], Customers.State = [Orders].[State], Customers.Zip = [Orders].[Zip];
UPDATE Orders INNER JOIN Customers ON [Customers].[CustID]=[Orders].[CustID] SET Customers.Name = [Orders].[Name], Customers.Address1 = [Orders].[Address1], Customers.Address2 = [Orders].[Address2], Customers.City = [Orders].[City], Customers.State = [Orders].[State], Customers.Zip = [Orders].[Zip];