S
Shae.Simpson
I have a table that needs to be updated via query. Easy enough, use an
update query. However, sometimes, the record is not there to be updated - it
needs to be appended. How do I tell the query:
if (([table1].field1=[table2].field1) and ([table1.field2=[table2].field2)
and ... ([table1].fieldx=[table2].fieldx))
then update ([table1].fieldy) with ([table2].fieldy)
else append ([table1].field1) with ([table2].field1) and ([table1.field2)
with([table2].field2) and ... ([table1].fieldx) with ([table2].fieldx) and
([table1].fieldy) with ([table2].fieldy)
Thanks in advance for any input.
Shae
update query. However, sometimes, the record is not there to be updated - it
needs to be appended. How do I tell the query:
if (([table1].field1=[table2].field1) and ([table1.field2=[table2].field2)
and ... ([table1].fieldx=[table2].fieldx))
then update ([table1].fieldy) with ([table2].fieldy)
else append ([table1].field1) with ([table2].field1) and ([table1.field2)
with([table2].field2) and ... ([table1].fieldx) with ([table2].fieldx) and
([table1].fieldy) with ([table2].fieldy)
Thanks in advance for any input.
Shae