I have an Microsoft Access update query that I run each month with no real issues. We download data from our mainframe (we are a bank) to excel. The excel worksheets are then used as linked tables to update parts of the access database.
The only problem is when something becomes blank. Assume branch number 5 or 322 is no longer used by our bank or simply has zero data this month. The mainframe output would not even have 5 or 322 so my linked table would not have 5 or 322.
After the update query runs, my access table would still show the data for 5 and 322 from the last time that there was data for them in the linked table. How do I set fields within a record to 0 or null if the linked key is not even in the linked date table?
Right now I am considering two update queries. One to set all the updated values to zero and one to update as it does now.
NOTE: This is a Microsoft Access question, not a sql question. I have no sql skills.
The only problem is when something becomes blank. Assume branch number 5 or 322 is no longer used by our bank or simply has zero data this month. The mainframe output would not even have 5 or 322 so my linked table would not have 5 or 322.
After the update query runs, my access table would still show the data for 5 and 322 from the last time that there was data for them in the linked table. How do I set fields within a record to 0 or null if the linked key is not even in the linked date table?
Right now I am considering two update queries. One to set all the updated values to zero and one to update as it does now.
NOTE: This is a Microsoft Access question, not a sql question. I have no sql skills.