P
Paolo
Hi,
Not sure if DAO is the answer, but I have done it using SQL strictly,
and was wondering if it would make more sense to do it in DAO and if
so, could someone give me some pointers.
Basically, I create a table of one record from a parent table using an
action query. Then I update the parent table using a cartesian join.
That is:
UPDATE tblParent, tblOnerecord
SET tblParent.Field = tblParent.Field+1
WHERE tblParent.Field >= tblOnerecord.Field
Then I update the one record table before finally inserting it back to
the parent table. I then drop the one record table. So now the parent
table is one record longer.
I got a response from someone that creating a table and then dropping
it is not a great idea. So I thought maybe there was a better solution
to this. This is kind of a repost as it has been bugging me.
Thanks,
Paolo
(e-mail address removed)
Not sure if DAO is the answer, but I have done it using SQL strictly,
and was wondering if it would make more sense to do it in DAO and if
so, could someone give me some pointers.
Basically, I create a table of one record from a parent table using an
action query. Then I update the parent table using a cartesian join.
That is:
UPDATE tblParent, tblOnerecord
SET tblParent.Field = tblParent.Field+1
WHERE tblParent.Field >= tblOnerecord.Field
Then I update the one record table before finally inserting it back to
the parent table. I then drop the one record table. So now the parent
table is one record longer.
I got a response from someone that creating a table and then dropping
it is not a great idea. So I thought maybe there was a better solution
to this. This is kind of a repost as it has been bugging me.
Thanks,
Paolo
(e-mail address removed)