I normally do not create a receipt number in the report. I would have the receipt number calculated and stored in the tables. This way you have a record of the receipt number and can reproduce the report.
I normally do not create a receipt number in the report. I would have the receipt number calculated and stored in the tables. This way you have a record of the receipt number and can reproduce the report.
1) manually enter the Receipt numbers in a field in the table
0r
2) in a code module, write a function to create a receipt number and store it in the table
- you can manually call this function
- add VBA code to the report's on open event to call the function
If it were me, I would use a form for data enter that automatically generates the receipt number when the data is enter.
If you are going to develop your data base to any extent I would strongly suggest using forms. If you can make a Report you are aleady part of the way there as Reports and Forms are kissing cousins.
so if your first report has numbers 10200 to 10220 say, then for your next report to start at 10221, you HAVE to have this info available somehow - either ask for it, or store it a table, or on the registry etc etc
Why not just add the autonumber to the report header? That way it will track back to the entry and by placing in the header, you avoid going through the field in data entry....