I have a form based on a query joining two tables. The
tables can be updated individually - so I am using a loop to check for changes in either table. When I update I first write a history record and then update the table. To update a table I am using docmd.runsql update table1 set table1.date1= # me!date1#, etc. The problem occurs with a date on the form that is null. I am getting a syntax error on ##. If I enter a date on the form it updates the table successfully.
Also, the update statement is long because I have about 20
fields to update on one table. Is there a way around this?
Thanks
tables can be updated individually - so I am using a loop to check for changes in either table. When I update I first write a history record and then update the table. To update a table I am using docmd.runsql update table1 set table1.date1= # me!date1#, etc. The problem occurs with a date on the form that is null. I am getting a syntax error on ##. If I enter a date on the form it updates the table successfully.
Also, the update statement is long because I have about 20
fields to update on one table. Is there a way around this?
Thanks