Dirk said:
True, the reason I am using one transaction form wide here is to workaround
the fact that I do not want to save the data in the recordset to disk right
away but do want it to be displayed in the listbox. Besides of it being out
of the ordinary it should be quite possible I recon. Doing this using the
recordset seemed a faster way than writing to the listbox directly.
Again, Transactions were never intended for this purpose nor were
listboxes intended to be updated in such a manner. Use a temp table.
Using the
recordset currency values get nicely displayed etc. If I have to write data
to the rows manually I would have a lot of overhead writing utilities to do
data conversion/layout, at least as far as I can see.
You might have a lot of overhead creating code to do this, but how much
time have you spent trying to make this work? Again a temp table would
probably do the job.
I need to control the listbox's content because it contains lines of an
invoice that can be manually entered or removede from the list. Only when all
lines are validated, and the chosen recipient is validated can a unique
invoice number be generated and all data be saved.
Again use a temp table, that stores the lines of the invoice and then
appends them to the table that contains the invoice detail when its all
validated. Even better, add a field to the invoice detail that indicates
the status of the line item (Unvalidated, validated, approved, etc.)
which is updated as needed.