Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Importing / Linking / December 2004

Tip: Looking for answers? Try searching our database.

ODBC error - how debug ???

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mscertified - 30 Dec 2004 19:41 GMT
here is the code that is failing. It works for me but not for my users. They
get a generic 'ODBC call failed' message. They are all set up with the driver
and system dsn and this used to work for them but it now fails. Is there any
way to modify the code to get a more specific ODBC message? Anyone got any
ideas?

Dim ws As Workspace
Dim cn As Connection
Dim rstODBC As Recordset, rstODBC2 As Recordset
Dim strConnection As String
strConnection = "ODBC;DSN=PMMIS AZ Production;DATABASE=PMMIS AZ
Production;UID=Junk;PWD=Junk"
Set ws = CreateWorkspace("", "admin", "", dbUseODBC)
Set cn = ws.OpenConnection("", dbDriverNoPrompt, False, strConnection)
Andi Mayer - 31 Dec 2004 12:37 GMT
>here is the code that is failing. It works for me but not for my users. They
>get a generic 'ODBC call failed' message. They are all set up with the driver
[quoted text clipped - 10 lines]
>Set ws = CreateWorkspace("", "admin", "", dbUseODBC)
>Set cn = ws.OpenConnection("", dbDriverNoPrompt, False, strConnection)

Try the test-connection in the ODBC-Admin

or leave the dbDriverNoPrompt in the connection string out and look
what is missing in the connection-dialog.

I didn't find any real error messages when I had such problems
---
If you expect an answer to a personal mail, add the word "manfred" to the first 10 lines in the message
MW
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.