I have used the following code referenced in the following link and it works fine in Access 2003:
When I attempt to use it in Access 2010 it kicks a Run-time error '3151'. The specific line that highlights when choosing to debug is CurrentDb.TableDefs.Append td
It doesn't seem to be a references issue as the keywords come up when typing in the code.
The 2003 and 2010 version are both pointing to the same MSSQL 2008 server/database with the same authentication method being used (Trusted Connection).
Again 2003 works but 2010 will not. Any direction for investigation would be greatly appreciated.
Thanks
When I attempt to use it in Access 2010 it kicks a Run-time error '3151'. The specific line that highlights when choosing to debug is CurrentDb.TableDefs.Append td
It doesn't seem to be a references issue as the keywords come up when typing in the code.
The 2003 and 2010 version are both pointing to the same MSSQL 2008 server/database with the same authentication method being used (Trusted Connection).
Again 2003 works but 2010 will not. Any direction for investigation would be greatly appreciated.
Thanks