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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to increment a calculated field?

Status
Not open for further replies.

KENTOY

MIS
Jan 31, 2003
9
PH
Can anybody show me how to increment a calculated field based on a continous subform.
I want to display the line number for every order he makes.

thanks

kentoy
 
The following SQL can be used as a guide for the query of your subform. You will have to update the table name, field name, and add additional fields to the select that you need for your subform.

SELECT Count(*) AS LineNo, tblYourTable.OrderNumber
FROM tblYourTable, tblYourTable AS tblYourTable_1
WHERE (((tblYourTable_1.OrderNumber)<=tblYourTable.OrderNumber))
GROUP BY tblYourTable.OrderNumber
ORDER BY Count(*);

Let me know if you need additional assistance with this.

Bob Scriver
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top