How To Use ADOX to Create an AutoNumber Field of Replication ID Field Size (297980)
The information in this article applies to:
- Microsoft Data Access Components 2.1
- Microsoft Data Access Components 2.1 (GA)
- Microsoft Data Access Components 2.1 SP1
- Microsoft Data Access Components 2.1 SP2
- Microsoft Data Access Components 2.5
- Microsoft Data Access Components 2.5 SP1
- Microsoft Data Access Components 2.6
This article was previously published under Q297980 SUMMARY
You can use the Microsoft Access user interface to create an AutoNumber field, in which the field size can be Long Integer or Replication ID. If you select Replication ID as the field size, a globally unique identifier (GUID) is automatically generated each time a new record is added to the table.
This article demonstrates how to use the ActiveX Data Objects Extensibility (ADOX) model to programmatically create an AutoNumber field with the Replication ID field size.
REFERENCES
For more information, see the "Data Types" section of Appendix A in the Microsoft Jet Engine Programmer's Guide at the following Microsoft Web site:
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbhowto KB297980 |
---|
|