is possible add auto
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » Is it possible to add an auto number to an unbound report?

Is it possible to add an auto number to an unbound report?

resolvedResolved · High Priority · Version 2003

replyReply Tue 19 Oct 2010, 08:53Delegate Joanne said...

Joanne has attended:
Access VBA course

Is it possible to add an auto number to an unbound report?

Is it poosible to add an auto number to a report that is not bound to any thing because its document that can be printed off by the user. But I want the report to have a new number each time it is printed off is this possible.
Thanks
jo

For upcoming training course dates see: Pricing & availability

replyReply Wed 20 Oct 2010, 11:23Trainer Stephen said...

RE: Is it possible to add an auto number to an unbound report?

Hi Joanne

Thanks for your question

An auto number is a data type, and therefore refers to a filed. As an unbound report has no fields behind it, the auto number cannot be used.
I suggest creating a table and storing the current report number as a long integer. I would the write code that runs when the report opens to increase the number by 1 and then update the number stored in the table

Regards

Stephen

replyReply Wed 20 Oct 2010, 12:26Delegate Joanne said...

RE: Is it possible to add an auto number to an unbound report?

Do you know what the code is for this please?
thanks
Jo

replyReply Wed 20 Oct 2010, 13:06Delegate Joanne said...

RE: Is it possible to add an auto number to an unbound report?

Hi just to let you know I have got this working with code etc
Thanks for your reply
Jo

 

Please browse our web site to find out more about
access courses and other Microsoft training courses.

Access tip:

Modal forms

If you have created a form / switchboard and dont want people to get away from using the switchboard, you can change the form properites for Modal to On.

View all Access hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard