ACC: How to Create a Multiuser Custom Counter (95/97) (140908)
The information in this article applies to:
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q140908
Moderate: Requires basic macro, coding, and interoperability skills.
SUMMARY
You can define a field as a data type AutoNumber. 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 determine the value of the number assigned to each new
record, you may want to use a custom counter. For example, you may want to
use a counter that decrements or use a counter that steps according to some
value. This article demonstrates a sample user-defined Visual Basic for
Applications function that you can use to create a custom counter field.
This article assumes that you are familiar with Visual Basic for
Applications and with creating Microsoft Access applications using the
programming tools provided with Microsoft Access. For more information
about Visual Basic for Applications, please refer to your version of the
"Building Applications with Microsoft Access" manual.
REFERENCES
For more information about creating AutoNumber fields, search the Help
Index for AutoNumber fields, creating or ask the Microsoft Access 97
Office Assistant.
| Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
|---|
| Keywords: | kbhowto kbProgramming kbusage KB140908 |
|---|
|