Larry Haydn
Board Regular
- Joined
- Jul 18, 2019
- Messages
- 207
- Office Version
- 365
- Platform
- Windows
Workbook A is an Excel VBA application.
Workbook B is another workbook that serves as the database.
Each record comprises of 276 fields, so I had to break the record into:
1. Saving a composite key (3 fields)
2. Make 6 UPDATE queries to save different parts of the record
3. Parts 1, 2, 3, 4 updates successfully (each has many blank fields)
4. Part 5 and 6 have the same error (see below)
Below is the query for part 6:
The following SQL statement raises an error:
Here is what the UPDATE statement contains, and the error dialog (Part 5 and 6 have the same error):
I have checked that:
* the record exists (based on the composite key)
* the field names are correct (otherwise it would have raised another error)
* the database columns are formatted as Text
* the variables are declared as String
* there is data in the query (see above)
* the field names and variables do not clash
* there are 4 other successful updates to this record, some with variables that are blank
This is the heading in Workbook B (the database):
These are the WHERE parameters, which shows that the record exists:
Can anyone figure out what is the error?
Workbook B is another workbook that serves as the database.
Each record comprises of 276 fields, so I had to break the record into:
1. Saving a composite key (3 fields)
2. Make 6 UPDATE queries to save different parts of the record
3. Parts 1, 2, 3, 4 updates successfully (each has many blank fields)
4. Part 5 and 6 have the same error (see below)
Below is the query for part 6:
The following SQL statement raises an error:
Here is what the UPDATE statement contains, and the error dialog (Part 5 and 6 have the same error):
I have checked that:
* the record exists (based on the composite key)
* the field names are correct (otherwise it would have raised another error)
* the database columns are formatted as Text
* the variables are declared as String
* there is data in the query (see above)
* the field names and variables do not clash
* there are 4 other successful updates to this record, some with variables that are blank
This is the heading in Workbook B (the database):
These are the WHERE parameters, which shows that the record exists:
Can anyone figure out what is the error?