chuckcoleman
Registered User.
- Local time
- Yesterday, 19:24
- Joined
- Aug 20, 2010
- Messages
- 363
I have a client that gets data sent to them on a daily basis from four locations. The data is from a customer of there and the customer isn't very flexible. The data comes in the form of an Excel spreadsheet. The columns in the spreadsheets from the four locations is the same, however in the spreadsheets sent from two of the four locations, the column heading for one column is blank. I use the DoCmd.TransferSpreadsheet function and it works great for transferring the spreadsheet data into a table, from two of the locations. For the two locations that are sending spreadsheets with the one column that has a blank header, it fails with the System error: 2391 - Field F5 doesn't exist in the destination table. It fails because the blank column heading is trying to find a field in the table to match, but all of the fields in the table have field names, like they should.
Does anyone know how I can use something like an If-Then statement where if the spreadsheet column heading is blank place the data in the field called TypeX?
Thank you in advance.
Does anyone know how I can use something like an If-Then statement where if the spreadsheet column heading is blank place the data in the field called TypeX?
Thank you in advance.