Hi all,
I have a linked table that is used by an update query to update records in the main table of my database. Everything has been running smoothly ... Normally, there are between 100 - 500 records that are updated at one time, on a daily basis, by this query. They join on a UID that is created by the database; ie., an AutoNumber field. When there are several hundred records run, it works fine. But today, a user forgot a single record, and attempted to run the update with that one record in the linked table, and the query failed - due to an incorrect data type error?
From what I've read, because Excel has no strong data types, Access (by default) looks at the first 8 rows to determine the datatypes of the columns?
When I ran the update with the single record, the query failed, and the linked table (shown in design view) used text for the "DBID" field. When I ran the update with 600 records, including the single record which previously failed, the query runs and the linked tables shows "DBID" as a numeric field.
What is going on? Can I not force Access to always interpret the data type of my "DBID" field to be a number?
Note - I tried formatting the actual spreadsheet in Excel to be a Number data type, but this had no effect when I only updated the single row.
Thanks!
I have a linked table that is used by an update query to update records in the main table of my database. Everything has been running smoothly ... Normally, there are between 100 - 500 records that are updated at one time, on a daily basis, by this query. They join on a UID that is created by the database; ie., an AutoNumber field. When there are several hundred records run, it works fine. But today, a user forgot a single record, and attempted to run the update with that one record in the linked table, and the query failed - due to an incorrect data type error?
From what I've read, because Excel has no strong data types, Access (by default) looks at the first 8 rows to determine the datatypes of the columns?
When I ran the update with the single record, the query failed, and the linked table (shown in design view) used text for the "DBID" field. When I ran the update with 600 records, including the single record which previously failed, the query runs and the linked tables shows "DBID" as a numeric field.
What is going on? Can I not force Access to always interpret the data type of my "DBID" field to be a number?
Note - I tried formatting the actual spreadsheet in Excel to be a Number data type, but this had no effect when I only updated the single row.
Thanks!