Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AutoNumber - Replication ID Returning ? in Code

Status
Not open for further replies.

gavinjb

Programmer
Apr 24, 2003
106
GB
I am trying to reference the AutoNumber Field that I have in one of my tables in Code, but all it returns is a ?, but if I try access the field in a Query I get the right result from the Field.

Does anyone know haw to handle an Autonumber - Replication ID Field in Code and return the correct result, I have tried things like cstr([FieldName]), etc but have had no luck.

Thanks,

Gavin,
 
what code are you using ? - an autonumber is no different to any other field - is it an empty record?
 
I have just found a solution, for using Replication Id in Auto Number fields. I have used the GUIDToString function to convert the field into something that the code window can handle.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top