Jan 16 2023 08:59 AM
The new update 16.0.15831.20216 has a bug when connecting ODBC tables.
When I execute this code:
Set tdf = CurrentDb.CreateTableDef(strCurrentTable, dbAttachSavePWD, strRemoteTableName, strConString)
CurrentTableName = tdf.Name
CurrentDb.TableDefs.Append tdf'This is where I got the error
I got this message: 'dbo.tbl_SalesForcastPromotionsCategories' is not a valid name. Make sure that it does not include invalid characters or punctuation and that it is not too long.
This code work perfectly fine for the last 6 years. Until the version 16.0.15831.20216
I rollback my office version to 16.0.15831.20208 and everything works.
Thanks
Jan 16 2023 01:54 PM - edited Jan 16 2023 02:00 PM
SolutionHi Gontran,
The problem and potential workarounds are documented in our bug tracking blog.
Servus
Karl
****************
Access Bug Trackers
Access News
Access DevCon
Jan 18 2023 09:18 PM
Jan 19 2023 04:10 AM
Jan 19 2023 05:53 AM
Jan 19 2023 06:02 AM
Hi,
> We hope this major issue will be fixed soon in a new version.
A fix is planned for next week. I have updated the already mentioned doc article.
Servus
Karl
****************
Access Bug Trackers
Access News
Access DevCon
Jan 19 2023 07:04 AM
Jan 19 2023 04:59 PM
Jan 19 2023 08:52 PM
Jan 20 2023 07:28 AM
Jan 20 2023 12:50 PM - edited Jan 20 2023 12:53 PM
Just run into the same problem and couldn't understand why this code was working fine and now wasn't. Wish I'd checked here first, but then the line of code at fault is the last one you would suspect.
I fixed my issue by adding this to the reconnection routine.
'Reconnect the sql view
Set myTD = Nothing
Set myTD = myDB.CreateTableDef(sLocalTable, 0, sRemoteTable, g_sODBC_CONNECTIONSTRING)
'Safety net fix
If myTD.Name <> sLocalTable Then myTD.Name = sLocalTable
myDB.TableDefs.Append myTD
This works and is only called if needed. Just wish I hadn't wasted hours of time I don't have on this, thanks MS.
Jan 22 2023 02:22 PM
Jan 26 2023 02:22 PM
Hi,
The new version 2301 (Build 16026.20146) released in the Current Channel today, should provide a fix for this bug. Please report if it worked for you.
It can take a few days to roll out new versions. Those affected by the bug can actively request it with Update Now.
I will also report on the effects or side effects in my documentation article.
Servus
Karl
****************
Access Bug Trackers
Access News
Access DevCon
Jan 29 2023 02:44 PM
Jan 16 2023 01:54 PM - edited Jan 16 2023 02:00 PM
SolutionHi Gontran,
The problem and potential workarounds are documented in our bug tracking blog.
Servus
Karl
****************
Access Bug Trackers
Access News
Access DevCon