ms+access+courses - primary key access
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 » ms+access+courses - Primary Key in Access

ms+access+courses - Primary Key in Access

resolvedResolved · Urgent Priority · Version Standard

replyReply Fri 28 Sep 2007, 09:24Delegate Reza said...

Reza has attended:
Excel Advanced course

Primary Key in Access

I have tried on many occasions to define my own start number for primary key and let Access to auto-increment it. Still it does not work. Can you please instruct me step-by-step how do I define it.

Also recently I have error msg "OpenReport Action Cancelled " when I attempt to click on my buttons. Any solutions?

Regards
Rez

For upcoming training course dates see: Pricing & availability

replyReply Fri 5 Oct 2007, 13:16Trainer Amanda said...

RE: Primary Key in Access

Hi Rez

Thanks for your question - sorry about the delay in replying.

I'm not sure why the error message is coming up, but with defining your own start number try the following:

Before you begin, if your original table contains property settings that prevent Null values in fields, you must temporarily change those properties. These settings include:
The Required field property set to Yes
The Indexed field property set to Yes (No Duplicates)
A field and/or record ValidationRule property that prevents Null values in fields

Then:
1. Create a temporary table with just one field: a Number field. Set its FieldSize property to Long Integer and give it the same name as the AutoNumber field in the table whose value you want to change.

2. In Datasheet view, enter a value in the Number field of the temporary table that is one (1) less than the starting value you want for the AutoNumber field. For example, if you want the AutoNumber field to start at 100, enter 99 in the Number field.

3. Create and run an append query to append the temporary table to the table whose AutoNumber value you want to change.

4. Delete the temporary table.

5. Delete the record added by the append query.

6. If you had to disable property settings in step 1, return them to their original settings.
When you enter a record in the remaining table, Microsoft Access uses an AutoNumber field value one (1) greater than the value you entered in the temporary table.

I hope this helps.
Amanda

replyReply Mon 22 Oct 2007, 19:44Delegate Reza said...

RE: Primary Key in Access

Hi Amanda,

Thank you for your instructions. I will try it and will get back to you if I face any issue.

Regards
Rez

replyReply Sat 17 Nov 2007, 18:58Delegate Reza said...

Set up user account and password for users

Can I get some step-by-step instructions to set up group with their initials and their own password to access to database.

However I have already tried to open the acount for users but for some reasons it doesnt work.
Thank you

 

Access tip:

Zoom feature for queries

If youare working on on query design and creating a calculated field, it can be hard to view the whole statement. You can hold the shift key down and press F2, to show the zoomed up version of the query field

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