Dear all,
I am trying to automate appending data from several spreadsheets and importing the data into a table. The issue I have is, how to make an append query so that if a column name on the imported spreadsheet is missing, how to automatically amend the access append query on each column that is missing, so that a default value is appended to the access table, instead of the parameter window popping up.
I was thinking of using an iif(isnull([column_name]),"No field",[column_name])
statement, but that did not work
any advice?

I am trying to automate appending data from several spreadsheets and importing the data into a table. The issue I have is, how to make an append query so that if a column name on the imported spreadsheet is missing, how to automatically amend the access append query on each column that is missing, so that a default value is appended to the access table, instead of the parameter window popping up.
I was thinking of using an iif(isnull([column_name]),"No field",[column_name])
statement, but that did not work
any advice?