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

Generating an auto-number on a report?

Status
Not open for further replies.

skuldren

Programmer
Feb 8, 2008
1
US
First off, can it be done? I'm using Microsoft Access 2007, I'm wanting to generate an auto-number on the report. Basically I have an OrderTable, a PartTable, and a PackingListTable. I have a report that shows all orders ready to be shipped. But I need the shipping report to have a packing list number. I want this number to be auto-generated, and I was hoping I could do this when the report is opened. Right now the report is generated through a query of orders that are ready to be shipped. Yet I can't figure out how to put an auto-generated packing number on the report.
 
It isn't real clear what you are asking. Do you want to number the detail records? If so, add a text box to the detail section:
Control Source: =1
Running Sum: Over all (or Over Group)

Duane MS Access MVP
 
If you can't use the autonumber from the packing list table, make another table with an autonumber field in it. Add a record to this table when the report is opened.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top