Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 15th, 2005, 03:59 AM
Authorized User
Join Date: Mar 2005
Location: , , Malaysia.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default auto generate an number

I am creating a system by using A2k. I want to assign a document number (sample : A001) to each record that has been added. Is there any way to auto generate a document number in access? which means i do not want the user to key in, the document number will be generated when / after the add button is pressed.

Reply With Quote
  #2 (permalink)  
Old March 22nd, 2005, 08:14 AM
Registered User
Join Date: Dec 2004
Location: Newbury, Berks, United Kingdom.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

Rogers Access Library --- Excellent compendium of Access 2000 routines from Roger Carlson. Here >>> http://www.rogersaccesslibrary.com/TableOfContents3.asp

Roger provides a particular example, http://www.rogersaccesslibrary.com/d...berProblem.mdb
if you are going to have multiple users of your database, there is one issue you should be aware of. And that is it is possible that two users could create the same number at the same time. One of Rogers' samples shows a method of handling this problem.

Reply With Quote
  #3 (permalink)  
Old March 28th, 2005, 02:24 AM
Authorized User
Join Date: Mar 2005
Location: , , Malaysia.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts

Thanks a lot for your help Uncle Gizmo

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
C# Auto Generate Codes lasith C# 0 February 23rd, 2007 02:25 AM
how to auto generate date? okboy SQL Server 2000 3 December 12th, 2006 08:17 PM
Auto generate no mateenmohd Classic ASP Basics 3 June 11th, 2006 07:06 AM
Auto generate? nikryden BOOK: Beginning VB.NET Databases 2 December 19th, 2005 12:43 PM
How to create auto generate variables? yikchin JSP Basics 1 December 19th, 2005 07:27 AM

All times are GMT -4. The time now is 07:59 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.