Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Dmax 1

Status
Not open for further replies.

drewcp

Programmer
Jul 31, 2008
30
0
0
US
I am trying to create an update query that will update one table with a value created from another query

it is supposed to take my field RECID from my query Batching and update the RECID field in my Batching RECID table

here is the sql that i am using to try and do this

Code:
UPDATE Batching, [Batching RECID] SET [Batching RECID].RECID = DMax([Batching],[RECID1])+1;

when i run it, a box pops up asking for the value of batching, i am not sure how to fix, i searched through forums about the Dmax function, but have not been able to figure this out

thanks in advance if anyone can help me out with this
 
You wanted this ?
UPDATE [Batching RECID] SET RECID = DMax("RECID1","Batching")+1;

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top