sql - Update Query from a Lookup Query -


I have a spreadsheet that I am converting to an Access DB. I have a column of customer names typed, which I want to change from my accounting system with the right customer number.

I have created a table with the information of the customer, and a query indicating which ID is needed in the source data What I am seeing:

< Pre> UPDATE tblStarting_Data SET CustomerID = x where TEMPCustomer = y

where X and Y come from qryIDPerCustomer.

Can I use a loop? Another possibility in MS Access (Borrowing Object Name from Tomacle): How do I reference another query?

  update tblStarting_Data, qryIDPerCustomer SET tblStarting_Data.CustomerID = qryIDPerCustomer.CustomerID where tblStarting_Data TEMPCustomer = qryIDPerCustomer.CustomerName  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -