Odbc Error 3146
Contents |
your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the error 3146 odbc call failed access 2010 forum that you want to visit from the selection below. Results 1 to 5 of run time error 3146 odbc call failed access 2010 5 Thread: ODBC - Connection Failed Error 3146 Tweet Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced
Run Time Error 3146 Odbc Call Failed Oracle
Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 05-05-09,19:17 #1 shanmugha View Profile View Forum Posts Registered User Join Date May 2009 Posts 8 Unanswered: ODBC - Connection Failed Error 3146 Hi,
Access Vba Runtime Error 3146
I have a situation here.I will be glad if anyone could help. We have a Microsoft Access 2003 accessing the SQL Server 2000 database using ODBC connection.I have set the database as a System Datasource with SQL Server driver and the connection settings. When i launch the .mdb application,i am able to connect to the database and fetch results.But only while populating the data on one of the combobox,the ODBC connection failed error 3146 run time error 3146 odbc call failed mysql arises. I turned on the tracing and saw that the SetConnection Attr failed error in the log. Any help is highly appreciated. Thanks in advance. Reply With Quote 05-05-09,20:24 #2 pkstormy View Profile View Forum Posts Moderator Join Date Dec 2004 Location Madison, WI Posts 3,926 Are you able to enter data for this field directly into the table? If not, are you able to enter data in this field directly into the SQL Server table (I'm guessing yes.) You can also try refreshing (or delete and relink) the linked tables. You can also put in a msgbox me!MyProblemField in the AfterUpdate (or BeforeUpdate) event to see what value is actually being saved in the combobox and see if it matches the SQL Server field type. I'm not sure what the error exactly means but these are some things I normally do to troubleshoot. My guess is that you may not be passing the correct value type for that field (what is the field type defined as on SQL Server?) Or it's a relational problem. Can you explain more on what kind of field type (and what it's for) that is giving you problems? Last edited by pkstormy; 05-05-09 at 20:34. Expert Database Programming MSAccess since 1.0, SQL Server since 6.5, Visual Basic (5.0, 6.0) Reply With
be down. Please try the request again. Your cache administrator is webmaster. Generated Sat, 22 Oct 2016 08:22:53 GMT by s_wx1011 (squid/3.5.20)
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About http://stackoverflow.com/questions/26224124/3146-odbc-call-failed-access-2010 Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the http://www.ryadel.com/en/odbc-call-failed-error-3151-on-windows-7-64-bit-and-how-to-fix-it/ Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up 3146 ODBC Call Failed - Access error 3146 2010 up vote -1 down vote favorite Please reference code below... Private Sub Save_Click() On Error GoTo err_I9_menu Dim dba As Database Dim dba2 As Database Dim rst As Recordset Dim rst1 As Recordset Dim rst2 As Recordset Dim rst3 As Recordset Dim SQL As String Dim dateandtime As String Dim FileSuffix As String Dim folder As String Dim strpathname As String Dim X As Integer X odbc call failed = InStrRev(Me!ListContents, "\") Call myprocess(True) folder = DLookup("[Folder]", "Locaton", "[LOC_ID] = '" & Forms!frmUtility![Site].Value & "'") strpathname = "\\Reman\PlantReports\" & folder & "\HR\Paperless\" dateandtime = getdatetime() If Nz(ListContents, "") <> "" Then Set dba = CurrentDb FileSuffix = Mid(Me!ListContents, InStrRev(Me!ListContents, "."), 4) SQL = "SELECT Extension FROM tbl_Forms WHERE Type = 'I-9'" SQL = SQL & " AND Action = 'Submit'" Set rst1 = dba.OpenRecordset(SQL, dbOpenDynaset, dbSeeChanges) If Not rst1.EOF Then newname = Me!DivisionNumber & "-" & Right(Me!SSN, 4) & "-" & LastName & dateandtime & rst1.Fields("Extension") & FileSuffix Else newname = Me!DivisionNumber & "-" & Right(Me!SSN, 4) & "-" & LastName & dateandtime & FileSuffix End If Set moveit = CreateObject("Scripting.FileSystemObject") copyto = strpathname & newname moveit.MoveFile Me.ListContents, copyto Set rst = Nothing Set dba = Nothing End If If Nz(ListContentsHQ, "") <> "" Then Set dba2 = CurrentDb FileSuffix = Mid(Me.ListContentsHQ, InStrRev(Me.ListContentsHQ, "."), 4) SQL = "SELECT Extension FROM tbl_Forms WHERE Type = 'HealthQuestionnaire'" SQL = SQL & " AND Action = 'Submit'" Set rst3 = dba2.OpenRecordset(SQL, dbOpenDynaset, dbSeeChanges) If Not rst3.EOF Then newname = Me!DivisionNumber & "-" & Right(Me!SSN, 4) & "-" & LastName & dateandtime & rst3.Fields("Extension") & FileSuffix Else newname = Me!DivisionNum
Board Games Movies Role-Playing Games TV Series Videogames Italiano ODBC Call Failed - Error 3151 on Windows 7 64-bit and how to fix it August 26, 2015August 26, 2015 Ryan Networking & Web, Operating Systems, System Configuration Table of ContentsThe ProblemThe AnalisysODBC Administrator (32-bit)ODBC Administrator (64-bit)The Fix If you stumbled upon this issue, chances are you're (re)installing an old software client on a new-or-newly-updated Windows 7 64-bit system. That program - often an archive/administrative/management service client or a similar home-made piece of software - uses a persistent ODBC connection to a local or remote DB via an ODBC DSN interface defined at user or system level using the Windows ODBC Administrator tool. The Problem The aforemetioned client can't find the ODBC Data Source entry, therefore showing an error pop-up containing the following: ODBC Call Failed - Error 3151 Or, depending on the ODBC driver installed: ODBC Connection Failed - Error 3146 First thing we need to do is to check if the latest version of the Windows ODBC is properly installed and if a proper Data Source pointing to the DB we need to connect has been set: you can check both of these by opening the Windows Control Panel and navigate through Administrative Tools -> ODBC Data Source Administrator. If there's something missing there, fix that and check again, otherwise keep reading. The Analisys This specific issue is mostly related to how Windows 7 and above handles ODBC connections. Starting from Win7 the OS contains two different ODBC Data Source Administration tool executables: the 32-bit one and the 64-bit one. You can find them in the following folders, as explained in a note of this official KB article: ODBC Administrator (32-bit) c:\windows\sysWOW64\odbcad32.exe 1 c:\windows\sysWOW64\odbcad32.exe ODBC Administrator (64-bit) c:\windows\system32\odbcad32.exe 1 c:\windows\system32\odbcad32.exe Which one should we