Working with two tables, one is an order table and the other is a customer table. When entering a new order, want to run an update query to copy the proper customer information into the order table. Am having problems getting the one particular record to be updated.
Here's the SQL from SQL view of query:
UPDATE OurTripNumber INNER JOIN Customer ON OurTripNumber.CustomerID = Customer.cID SET OurTripNumber.CustomerID = [customer].[cid], OurTripNumber.Name = [customer].[cname], OurTripNumber.Address = [customer].[caddress], OurTripNumber.City = [customer].[ccity], OurTripNumber.State = [customer].[abbreviation], OurTripNumber.Zip = [customer].[czippostal], OurTripNumber.Tel = [customer].[cphone]
WHERE (((OurTripNumber.CustomerID)=[Update with what Customer?]) AND ((OurTripNumber.OrderNumber)=[Update what order #?]));
Am not overly familiar with SQL. Thanks in advance for any help.
Here's the SQL from SQL view of query:
UPDATE OurTripNumber INNER JOIN Customer ON OurTripNumber.CustomerID = Customer.cID SET OurTripNumber.CustomerID = [customer].[cid], OurTripNumber.Name = [customer].[cname], OurTripNumber.Address = [customer].[caddress], OurTripNumber.City = [customer].[ccity], OurTripNumber.State = [customer].[abbreviation], OurTripNumber.Zip = [customer].[czippostal], OurTripNumber.Tel = [customer].[cphone]
WHERE (((OurTripNumber.CustomerID)=[Update with what Customer?]) AND ((OurTripNumber.OrderNumber)=[Update what order #?]));
Am not overly familiar with SQL. Thanks in advance for any help.