G
ged
I have a problem where i have multible tables that are needed to be
moved from one db to another with slightly differant fields. I have
coded it so that the destination can import the tables and then sort
through the imported tables and get the data into the destination
tables. Destination tables do have more fields then the source which
doing this way i could leave default and not worry about.
That was easy even assigning the primary autonumber keys that are used
in the other tables as a link the data is placed in perfectly...
Until in several tables you attempt to create a new record and you
find that the recordset.Update falls over saying that the table is
trying to create a entry with lue that exists in a unique field. The
friggin auto number being assigned is actually no where near the end
of the required level.
The strange thing is it isnt in every table just some.
My question is: "Is there any way to set what the next autonumber
value will be so that after my import i can just scan for the biggest
and set it to biggest plus one??????"
OR
Am I an Idiot and could i move the data in an easier fashion. (Reason
I have done it like this is because of the complexity of the
relationships and the very rare occasional need to do this)
moved from one db to another with slightly differant fields. I have
coded it so that the destination can import the tables and then sort
through the imported tables and get the data into the destination
tables. Destination tables do have more fields then the source which
doing this way i could leave default and not worry about.
That was easy even assigning the primary autonumber keys that are used
in the other tables as a link the data is placed in perfectly...
Until in several tables you attempt to create a new record and you
find that the recordset.Update falls over saying that the table is
trying to create a entry with lue that exists in a unique field. The
friggin auto number being assigned is actually no where near the end
of the required level.
The strange thing is it isnt in every table just some.
My question is: "Is there any way to set what the next autonumber
value will be so that after my import i can just scan for the biggest
and set it to biggest plus one??????"
OR
Am I an Idiot and could i move the data in an easier fashion. (Reason
I have done it like this is because of the complexity of the
relationships and the very rare occasional need to do this)