How do I create guid autonumber field programmatically using C#?
In order to make your GUID field auto-increment, use GenGUID() as it's default value.
This works in Access using ADO. Perhaps a similar statement will work in C#:
CurrentProject.Connection.Execute "CREATE TABLE hede (Id Guid DEFAULT GenGUID())"
This might be helpful:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q180841
Also, using DAO:
What is the MS Access SQL syntax to create a field of type Hyperlink?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With