ACC2000: How to Create a Multiuser Custom Counter (210194)
The information in this article applies to:
This article was previously published under Q210194 This article applies only to a Microsoft Access database (.mdb).
Advanced: Requires expert coding, interoperability, and multiuser skills.
SUMMARY
When you define a field as an AutoNumber field, Microsoft Access automatically increments the value of the field whenever a new record is added to the table. You have no control over this value.
If you want to control the value of the number assigned to each new
record, you can use a custom counter. For example, you can
use a counter that decrements or steps according to some value.
This article shows you how to create user-defined Visual Basic for Applications function to create a custom counter field.
REFERENCESFor more information about creating AutoNumber fields, click Microsoft Access Help on the
Help menu, type autonumber fields, creating in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
Modification Type: | Major | Last Reviewed: | 6/23/2005 |
---|
Keywords: | kbhowto kbusage KB210194 |
---|
|