Hi, Paco.
The easiest way to do this is to ensure that the primary key in the SQL
Server table is a UNIQUEIDENTIFIER data type and that the DEFAULT for this
column is NewID( ). That way, the records inserted into this table will
automatically have a GUID created for them.
However, if the DBA isn't available and you don't have permissions to alter
this table, then you can have Access create the GUID's for you before the
append. To do so, create a temporary table of identical structure to the
table where your Access records are currently stored. Ensure that the
primary key column in this temporary table is an Autonumber, but change the
default Field Size from Long Integer to Replication ID. Run an append query
from the original table into the temporary table to create a GUID for each
record inserted from the original table. When it's finished, use this
temporary table as the source of your append query into the SQL Server table.
HTH.
Gunny
See
http://www.QBuilt.com for all your database needs.
See
http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
http://www.Access.QBuilt.com/html/expert_contributors2.html for contact info.