T
Tony Gilbert
Hi,
I have 2 problems with the SQL Server tables that are linked to my
front-end:
* Before update code cannot catch the ID of the new record:
With an Access table, you can ask for the autonumber of the record to
be saved, so you can use that to add details to another table, for
instance. I don't get the ID when linking to sql server, and catching
it after the record is saved creates all kinds of problems (some forms
automatically go to a new record when a record is saved, some forms
get real ugly when I can't use before update..). Is there any solution
to this??
* When I use DAO to add a record to a table (AddNew & Update), I don't
get the ID of the new record:
Similar. Before the Update method, the recordset won't show the
autonumber. After the Update method, the record isn't the current
record anymore.. I need the id to verify data in other tables... I
just can't come up with a simple solution...
Thanx a million for your ideas!
I have 2 problems with the SQL Server tables that are linked to my
front-end:
* Before update code cannot catch the ID of the new record:
With an Access table, you can ask for the autonumber of the record to
be saved, so you can use that to add details to another table, for
instance. I don't get the ID when linking to sql server, and catching
it after the record is saved creates all kinds of problems (some forms
automatically go to a new record when a record is saved, some forms
get real ugly when I can't use before update..). Is there any solution
to this??
* When I use DAO to add a record to a table (AddNew & Update), I don't
get the ID of the new record:
Similar. Before the Update method, the recordset won't show the
autonumber. After the Update method, the record isn't the current
record anymore.. I need the id to verify data in other tables... I
just can't come up with a simple solution...
Thanx a million for your ideas!