Stop access from populating uniqueidentifier (GUID)

G

Guest

OK, i have completed some more testing with the UniqueIdentifier fields in
Access. When a new record is created, MS Access automatically populates any
SQL Server non-primary key UniqueIdentifier field with a value. I have set
the default(s) to be null (Access form and SQL Server).

How do i set properties so that Access does not auto-populate the
UniqueIdentifier fields?

Thank you

Server 2000 / Access 2003
 
J

John W. Vinson

OK, i have completed some more testing with the UniqueIdentifier fields in
Access. When a new record is created, MS Access automatically populates any
SQL Server non-primary key UniqueIdentifier field with a value. I have set
the default(s) to be null (Access form and SQL Server).

How do i set properties so that Access does not auto-populate the
UniqueIdentifier fields?

Ummm...

That's a contradiction. A unique identifier must have a different value in
every record, in order to be a unique identifier. As such it cannot be NULL.

John W. Vinson [MVP]
 
G

Guest

my pseudo fields are idGUID, idComapny, idLocation. idGUID is the primary
key while idCompany and idLocation are references to PK in other fields. I
do not want idCompany and idLocation being automatically populated
 
J

John W. Vinson

my pseudo fields are idGUID, idComapny, idLocation. idGUID is the primary
key while idCompany and idLocation are references to PK in other fields. I
do not want idCompany and idLocation being automatically populated

They won't be, unless you're doing something very odd.

John W. Vinson [MVP]
 
G

Guest

that is what i thought. I even tested with a three (3) field table: idGUID
(UniqueIdentifier, PK), Name (nVarChar(50)), field3 (UniqueIdentifier). only
idGUID is to auto populate.

when i enter a new record directly in the table, field3 gets a value.

could ADO have anything to do with it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top