Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Dim wrkODBC As Workspace Dim conORAP039 As Connection Function Some_Function() SetConnectionObject 'Run GetVehicleModels_Connection query "VEHICLE_MODEL" on 'Lists' worksheet Sheets("Lists").Range("A1").QueryTable.Refresh BackgroundQuery:=False End Function Private Sub SetConnectionObject() ' Create ODBCDirect Workspace object and open Connection objects. Set wrkODBC = CreateWorkspace("NewODBCWorkspace", "xxxxxx", "xxxxxx", dbUseODBC) Workspaces.Append wrkODBC ' Note: The DSNs referenced below must be configured to ' use Microsoft Windows NT Authentication Mode to ' authorize user access to the Microsoft SQL Server. Set conORAP039 = wrkODBC.OpenConnection("ORAP039", dbDriverNoPrompt, True, _ "ODBC;DATABASE=ORAP039;UID=xxxxxx;PWD=xxxxxx;DSN=ORAP039") End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.