A family of Microsoft relational database management systems designed for ease of use.
Several methods are described in my article:
Sequential Rows in Microsoft Access
Full code is too much to post here, but can found here:
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I was using the below sql code to append records from a query to a working table.
Every time I run the below sql code, I use to delete the previous record first and then run the code.
INSERT INTO TblLimit ( VendorNo, FormNo, DoNo, DoDt, ExtPrice )
SELECT LimitCheck1.VendorNo, LimitCheck1.FormNo, LimitCheck1.DoNo, LimitCheck1.DoDt, LimitCheck1.ExtPrice
FROM LimitCheck1;
Now a new Numer Type field "RecoID" has been added in the TblLimit, which should be in sequence of 1,2,3 and so on as per records.
Please advise how to obtain the requirement within the query, the Revised sql code should be as below :
INSERT INTO TblLimit ( RecoID, VendorNo, FormNo, DoNo, DoDt, ExtPrice )
SELECT RunningNumSolutionNeedHERE, LimitCheck1.VendorNo, LimitCheck1.FormNo, LimitCheck1.DoNo, LimitCheck1.DoDt, LimitCheck1.ExtPrice
FROM LimitCheck1;
A family of Microsoft relational database management systems designed for ease of use.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
Several methods are described in my article:
Sequential Rows in Microsoft Access
Full code is too much to post here, but can found here:
Answer accepted by question author
Try
INSERT INTO TblLimit ( RecoID, VendorNo, FormNo, DoNo, DoDt, ExtPrice )
SELECT Nz(DMax("RecoID","TblLimit),0)+1, LimitCheck1.VendorNo, LimitCheck1.FormNo, LimitCheck1.DoNo, LimitCheck1.DoDt, LimitCheck1.ExtPrice
FROM LimitCheck1;
A good learning website with lot of situation's solution.
Thanking you for sharing.
Regards
The running increment should be based on some order based on values in you table. Can you define that order?