Runtime error 3146 odbc ошибка вызова

Обновлено: 04.07.2024

This article features error number Code 3146, commonly known as Microsoft Access Error 3146 described as ODBC--call failed.

Error Information

This repair tool can fix common computer errors like BSODs, system freezes and crashes. It can replace missing operating system files and DLLs, remove malware and fix the damage caused by it, as well as optimize your PC for maximum performance.

About Runtime Code 3146

Runtime Code 3146 happens when Microsoft Access fails or crashes whilst it's running, hence its name. It doesn't necessarily mean that the code was corrupt in some way, but just that it did not work during its run-time. This kind of error will appear as an annoying notification on your screen unless handled and corrected. Here are symptoms, causes and ways to troubleshoot the problem.

Definitions (Beta)

Here we list some definitions for the words contained in your error, in an attempt to help you understand your problem. This is a work in progress, so sometimes we might define the word incorrectly, so feel free to skip this section!

  • Access - DO NOT USE this tag for Microsoft Access, use [ms-access] instead
  • Call - A Call is the action of invoking a subroutine of code, an external program or a script in a programming environment
  • Odbc - Open Database Connectivity ODBC provides a standard software interface for accessing database management systems DBMS.
  • Access - Microsoft Access, also known as Microsoft Office Access, is a database management system from Microsoft that commonly combines the relational Microsoft JetACE Database Engine with a graphical user interface and software-development tools
  • Microsoft access - Microsoft Access, also known as Microsoft Office Access, is a database management system from Microsoft that commonly combines the relational Microsoft JetACE Database Engine with a graphical user interface and software-development tools
Symptoms of Code 3146 - Microsoft Access Error 3146

Runtime errors happen without warning. The error message can come up the screen anytime Microsoft Access is run. In fact, the error message or some other dialogue box can come up again and again if not addressed early on.

There may be instances of files deletion or new files appearing. Though this symptom is largely due to virus infection, it can be attributed as a symptom for runtime error, as virus infection is one of the causes for runtime error. User may also experience a sudden drop in internet connection speed, yet again, this is not always the case.

Fix Microsoft Access Error 3146 (Error Code 3146)



(For illustrative purposes only)

Causes of Microsoft Access Error 3146 - Code 3146

During software design, programmers code anticipating the occurrence of errors. However, there are no perfect designs, as errors can be expected even with the best program design. Glitches can happen during runtime if a certain error is not experienced and addressed during design and testing.

Runtime errors are generally caused by incompatible programs running at the same time. It may also occur because of memory problem, a bad graphics driver or virus infection. Whatever the case may be, the problem must be resolved immediately to avoid further problems. Here are ways to remedy the error.

Repair Methods

Runtime errors may be annoying and persistent, but it is not totally hopeless, repairs are available. Here are ways to do it.

If a repair method works for you, please click the upvote button to the left of the answer, this will let other users know which repair method is currently working the best.

Примечание: Мы стараемся как можно оперативнее обеспечивать вас актуальными справочными материалами на вашем языке. Эта страница переведена автоматически, поэтому ее текст может содержать неточности и грамматические ошибки. Для нас важно, чтобы эта статья была вам полезна. Просим вас уделить пару секунд и сообщить, помогла ли она вам, с помощью кнопок внизу страницы. Для удобства также приводим ссылку на оригинал (на английском языке).

Причина

Сбой вызова ODBC

Сведения об ошибке сервер определенного содержащиеся в второй компонент, из которой можно извлечь номер ошибки и описание, такие как:

Если задать свойство OnError формы процедуру события, может перехватить номер первого компонента ошибки, но нельзя ловушки количество второй компонент. Сервер сведений во второй части ошибка ODBC на экране появляется после завершения кода работает, если не включить следующую строку в случае процедуры:

Ответ = acDataErrContinue

Разрешение

Примечание: Microsoft примеры программирования только для иллюстрации и без гарантий выраженное или подразумевается. Включает в себя, но не ограничивается гарантий окупаемость или Фитнес для определенной цели. В этой статье предполагается, что вы знакомы с языком программирования предложенном и с помощью средств, которые используются для создания и отладки процедур. Сотрудники службы поддержки Майкрософт могут пояснить конкретной процедуры, но не будет изменен в приведенных примерах для обеспечения функциональных возможностей или создания процедур в соответствии с конкретными требованиями.

DAO содержит коллекцию ошибок, которые можно использовать для обнаружения сервера сведений во второй части ошибка ODBC. При возникновении ошибки ODBC, первый компонент сохраняется в первый элемент в коллекцию ошибок и второй компонент хранятся в второй элемент.

В этой статье примере событие до обновления вместо ошибки событий для обнаружения ошибок ODBC. Чтобы создать функцию, ловушки ODBC ошибок при наступлении события до обновления формы, выполните следующие действия:

Создайте пустую базу данных рабочего стола.

Ссылка на dbo_Accounts таблицы в базе данных AdventureWorks в Microsoft SQL Server.

Использование мастера форм - макете, чтобы создать новую форму, основанный на таблице учетные записи.

Сохранение формы в виде frmAccounts.

Создайте новый модуль, а затем введите следующую строку в раздел описаний Если этой строке еще нет:

Option Explicit

Введите или вставьте в модуль указанные ниже действия:

Сохраните модуль уникальное имя и закройте окно модуля.

Задайте для свойства до обновления формы frmAccounts следующую процедуру события.

В меню Отладка щелкните компиляции < имя базы данных >

Если не происходит ошибки, сохраните форму.

Откройте форму frmAccounts и добавить новую запись или изменить запись.

Примечание: Мы стараемся как можно оперативнее обеспечивать вас актуальными справочными материалами на вашем языке. Эта страница переведена автоматически, поэтому ее текст может содержать неточности и грамматические ошибки. Для нас важно, чтобы эта статья была вам полезна. Просим вас уделить пару секунд и сообщить, помогла ли она вам, с помощью кнопок внизу страницы. Для удобства также приводим ссылку на оригинал (на английском языке).

Причина

Сбой вызова ODBC

Сведения об ошибке сервер определенного содержащиеся в второй компонент, из которой можно извлечь номер ошибки и описание, такие как:

Если задать свойство OnError формы процедуру события, может перехватить номер первого компонента ошибки, но нельзя ловушки количество второй компонент. Сервер сведений во второй части ошибка ODBC на экране появляется после завершения кода работает, если не включить следующую строку в случае процедуры:

Ответ = acDataErrContinue

Разрешение

Примечание: Microsoft примеры программирования только для иллюстрации и без гарантий выраженное или подразумевается. Включает в себя, но не ограничивается гарантий окупаемость или Фитнес для определенной цели. В этой статье предполагается, что вы знакомы с языком программирования предложенном и с помощью средств, которые используются для создания и отладки процедур. Сотрудники службы поддержки Майкрософт могут пояснить конкретной процедуры, но не будет изменен в приведенных примерах для обеспечения функциональных возможностей или создания процедур в соответствии с конкретными требованиями.

DAO содержит коллекцию ошибок, которые можно использовать для обнаружения сервера сведений во второй части ошибка ODBC. При возникновении ошибки ODBC, первый компонент сохраняется в первый элемент в коллекцию ошибок и второй компонент хранятся в второй элемент.

В этой статье примере событие до обновления вместо ошибки событий для обнаружения ошибок ODBC. Чтобы создать функцию, ловушки ODBC ошибок при наступлении события до обновления формы, выполните следующие действия:

Создайте пустую базу данных рабочего стола.

Ссылка на dbo_Accounts таблицы в базе данных AdventureWorks в Microsoft SQL Server.

Использование мастера форм - макете, чтобы создать новую форму, основанный на таблице учетные записи.

Сохранение формы в виде frmAccounts.

Создайте новый модуль, а затем введите следующую строку в раздел описаний Если этой строке еще нет:

Option Explicit

Введите или вставьте в модуль указанные ниже действия:

Сохраните модуль уникальное имя и закройте окно модуля.

Задайте для свойства до обновления формы frmAccounts следующую процедуру события.

В меню Отладка щелкните компиляции < имя базы данных >

Если не происходит ошибки, сохраните форму.

Откройте форму frmAccounts и добавить новую запись или изменить запись.

Summary:

Does your Access database showing “3146 – ODBC Connection Failed” error? Looking for the fixes to resolve this issue? Then just go through the complete post and get the best resolution to solve this.

The “3146 – ODBC Connection Failed” error message displays as a result of a faulty network connection. This error might occur at any point within the database when setting up and associated with the database on an additional PC. The most common alternatives are either a faulty network card or SQL will terminate the connection after 30 minutes of inactivity for security reasons.

This run-time error occurs at the time when the system has any issue with the software and hardware components. The main reason for this error is to take place is when a system gets corrupted in Windows OS.

This article will be guiding you to get rid of ODBC call failed error 3146 in MS Access using manual method and even a fully automated solution. Moreover, errors that take place regularly in relation to Access error 3146 ODBC call failed, will too be sent.

Fix Microsoft Access Issues
Run a database Scan with Stellar Access Database Repair Tool to repair inconsistent Access database. After the scan is complete, the repair process will restore the database to its normal state fixing all the errors.

By clicking the button above and installing Stellar Repair for Access (14.8 MB, $79 USD), I acknowledge that I have read and agree to the End User License Agreement and Privacy Policy of this site.

What is Run-Time Error 3146?

what

When Microsoft Access tries to enter the SQL Server 2000 database with the help of the ODBC connection it displays an Error 3146- ODBC Call Failed. The database has been set as a source of data for the system with the driver of SQL Server.

Hence on launching the .mdb application database could be attached and results are fetched. But while populating data on the combo box, it shows ODBC call failed error 3146.

This error report is actually the hexadecimal format of the error code that’s generated. This is frequently brought into usage by the MS Windows along with additional compatible software and drivers. In some cases you may find superfluous constraints into the 3146 ODBCl failed Access error. The further letter and number code are addressed onto your storage fragment where all instructions are being saved at the time of happening of this error message.

Cause For Run Time Error 3146 ODBC Call Failed Access Error Code?

As discussed the major reason for the run-time error 3146 to happen is the corruption of the Windows system files. Because if the entries of the system are broken, then it is enough two pose considerable injury to the overall health of the individual computer system

Some well-known reasons for the cause of this error include fragmentary installation, erasing a fractional file, inappropriate removal of equipment and software. Even attack of some malicious programs like Trojan or other virus-like spyware or adware could lead to this hectic situation. And these entire instances are sufficient for deleting or corrupting system files of the Windows. The damaged file will let you in wrongly and missing linkage of details and data files that are vital for the program to function correctly.

Fixes To Resolve MS Access Run-time 3146 ODBC Call Failed Error

Record Locking Errors in Microsoft Access applications

Method 1: Remove ODBC 1.x Driver Manager

To fix this issue it is advised to remove the ODBC 1.x Driver Manager (Odbc.dll) and replace it with ODBC 2.x Driver Manager (Odbc.dll) in the primary path.

Method 2: Advanced Computer User Resolution (advanced):

  • Turn on your system and run as an administrator.
  • Go to the start button and go for All Programs, Accessories, System, and after that opt for System Restore.
  • Commencing subsequent screen, press “Restore my machine to a previous time” and then hit NEXT.
  • Locate mainly present restore point inside the “select a restore date” list, and click Next after that.
  • On verification screen of system click Next.
  • When restoration is done, Reboot the system.

Fully Automated Solution:

If all the above-mentioned solution does not help to fix this issue then I would suggest opting for a third-party tool that solves any sort MS Access related error. And the best available tool for this purpose is MS Access Repair and Recovery Tool.

This tool is not only fixed errors but also fixes the .mdb or .acccdb files and recovers the data from your corrupted MS Access database. You can also restore the indexes, tables, queries, and relations very easily by using this tool.


* By clicking the Download button above and installing Stellar Repair for Access (14.8 MB, $79 USD), I acknowledge that I have read and agree to the End User License Agreement and Privacy Policy of this site.

Читайте также: