M
mwilliams4
I have an update query that updates two fields in my database.
I use a temp table so the users can enter data all day, and then come
back to it later and add to it.
Then once the user wants to update in batch, an update query is run to
update the fields in the related records.
But sometimes one field of the two in the temp table has no data, and
I don't want to overwrite what may already be in that field with
nothing.
Is there a way to do it where if the field in the temp table has
nothing in it that it does not get updated.
Example
Rec ID invoiceDate InvoiceAmt
12345678 1/1/2008
12345432 $123.23
12345321 1/1/2008 $223.43
It would just update the invoiceDate for the first one,
just the Invoice Amount for the second,
and both fields on the third one.
It would seem to be an easy one, but I'm stuck.
Any help would be appreciated
I use a temp table so the users can enter data all day, and then come
back to it later and add to it.
Then once the user wants to update in batch, an update query is run to
update the fields in the related records.
But sometimes one field of the two in the temp table has no data, and
I don't want to overwrite what may already be in that field with
nothing.
Is there a way to do it where if the field in the temp table has
nothing in it that it does not get updated.
Example
Rec ID invoiceDate InvoiceAmt
12345678 1/1/2008
12345432 $123.23
12345321 1/1/2008 $223.43
It would just update the invoiceDate for the first one,
just the Invoice Amount for the second,
and both fields on the third one.
It would seem to be an easy one, but I'm stuck.
Any help would be appreciated