Share via

VBA code to open a SQL server table

Anonymous
2013-10-18T14:52:20+00:00

How can I open a SQL server table via VBA? I would want to open it as a querydef or recordset (either one). I know the database name and ODBC connect string are needed, along with the table name.

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. ScottGem 68,830 Reputation points Volunteer Moderator
    2013-10-18T16:07:26+00:00

    Was this answer helpful?

    0 comments No comments