What error message were you getting?
Using Access, what is wrong with this query, UPDATE family SET F17 = CDate(bday);
UPDATE family SET F17 = CDate(bday) Where id = 1;
Microsoft 365 and Office | Access | Development
3 answers
Sort by: Most helpful
-
DBG 2,381 Reputation points Volunteer Moderator
2025-05-27T16:13:44.1233333+00:00 -
Luis Angel Ñañez Llanos 431 Reputation points
2025-05-27T17:28:09.1366667+00:00 Hi Thomas, I see no fault in the SQL query you share, as long as:
- family, is the correct name of the table where the change will be made.
- F17, is the correct name of the field to update.
- bday, is the correct name of the column containing the value to convert with Cdate.
- Id, is the correct name of the column and its data type is numeric.
Notify us of any news
-
George Hepworth 10 Reputation points Volunteer Moderator
2025-05-27T23:04:48.36+00:00 It appears to me that F17 is a cell reference in an Excel worksheet. If you imported a worksheet into a table and Access, and didn't rename that reference to a valid name, perhaps this could work. However, if this is a linked table in an Excel worksheet, it is not updateable.
Another potential problem is the value of bday. Where does that come from? How is it defined for this Update? I assume that this is the SQL from a query and not a string in VBA?
Thanks for providing sufficient information to allow us to offer useful suggestions.