Repost Update Values

E

Edgar Thoemmes

No answer yesterday.....can anyone help?


Sorry SQL should read:

UPDATE Table1 INNER JOIN (tblBookDetails INNER JOIN tblCopies ON
tblBookDetails.BookID = tblCopies.BookID) ON Table1.ISBN =
tblBookDetails.ISBN SET tblCopies.TotalCost = [tblPrices]![UnitPrice];
 
M

Michel Walsh

Hi,


tblPrices is not specified in the FROM clause.


Hoping it may help,
Vanderghast, Access MVP


Edgar Thoemmes said:
No answer yesterday.....can anyone help?


Sorry SQL should read:

UPDATE Table1 INNER JOIN (tblBookDetails INNER JOIN tblCopies ON
tblBookDetails.BookID = tblCopies.BookID) ON Table1.ISBN =
tblBookDetails.ISBN SET tblCopies.TotalCost = [tblPrices]![UnitPrice];



--
Many Thanks

Edgar

----------------------------------------------------------------
e dot thoemmes at blueyonder dot co dot uk
Edgar Thoemmes said:
I am trying to updates some costs in my database. I have the following
tables:

tblCopies(CopyId, BookID[fk to tblbookdetails], Condition,Price)
tblBookDetail(BoodId, ISBN, Author)
tblBook/AuthortblPrices(ISBN, Quantity, UnitPrice)
tblPrices(ISBN, Quantity, UnitPrice)

I am trying to update the price in tblcopies with the price in tblPrices.
The query must edit the same number of records in tblCopies as is in
the
quantity field in tblPrices. For example I may have 100 copies of BookID 152
but I only want to update 5 of them which is in the Quantity field in
tblprices

My SQL so far:

UPDATE Table1 INNER JOIN (tblBookDetails INNER JOIN tblCopies ON
tblBookDetails.BookID = tblCopies.BookID) ON Table1.ISBN =
tblBookDetails.ISBN SET tblCopies.TotalCost = [Table1]![UnitPrice];
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Update Query 1
Problem with Update query 6
Update Query from table 4
"Query must use updateable query" error message 2
Repost-Edit and save query criteria 5
SQL Update 14
update statment 0
Update Query 10

Top