R
Rotsey
Hi,
I am writing some code that uses DAO code to write to access table
that is linked to a SQL table using transaction control.
So I am writing a invoice record to a invoice table in a loop
In the loop I have to check if a invoice already exists with the invoice
number
I supply before writing the record.
The problem is that when I write the first record all is ok but the second
write is the same number as the first because it happens to be for the same
customer etc
and this causes a runtime error which says "execution cancelled"
You see it seems to fail when I do my check (which is a lookup on the
same table) on the record I have already written in the transaction before.
Any ideas why??
rotsey
I am writing some code that uses DAO code to write to access table
that is linked to a SQL table using transaction control.
So I am writing a invoice record to a invoice table in a loop
In the loop I have to check if a invoice already exists with the invoice
number
I supply before writing the record.
The problem is that when I write the first record all is ok but the second
write is the same number as the first because it happens to be for the same
customer etc
and this causes a runtime error which says "execution cancelled"
You see it seems to fail when I do my check (which is a lookup on the
same table) on the record I have already written in the transaction before.
Any ideas why??
rotsey