Runtime error 3163

Error 3163 The field is too small to accept the amount of data you attempted to add errors can freeze or crash your computer and may lead to possible malware infections. Follow these easy steps to fix your Runtime Errors errors quickly and simply.

This article features error number Code 3163, commonly known as The field is too small to accept the amount of data you attempted to add described as The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data.

About Runtime Code 3163

Runtime Code 3163 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!

  • Add — Addition is a mathematical operation that represents combining collections of objects together into a larger collection
  • Field — In computer science a field is a smaller piece of data from a larger collection.

Symptoms of Code 3163 — The field is too small to accept the amount of data you attempted to add

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 The field is too small to accept the amount of data you attempted to add (Error Code 3163)
(For illustrative purposes only)

Causes of The field is too small to accept the amount of data you attempted to add — Code 3163

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.

Please note: Neither ErrorVault.com nor it’s writers claim responsibility for the results of the actions taken from employing any of the repair methods listed on this page — you complete these steps at your own risk.

Method 7 — IE related Runtime Error

If the error you are getting is related to the Internet Explorer, you may do the following:

  1. Reset your browser.
    • For Windows 7, you may click Start, go to Control Panel, then click Internet Options on the left side. Then you can click Advanced tab then click the Reset button.
    • For Windows 8 and 10, you may click search and type Internet Options, then go to Advanced tab and click Reset.
  2. Disable script debugging and error notifications.
    • On the same Internet Options window, you may go to Advanced tab and look for Disable script debugging
    • Put a check mark on the radio button
    • At the same time, uncheck the «Display a Notification about every Script Error» item and then click Apply and OK, then reboot your computer.

If these quick fixes do not work, you can always backup files and run repair reinstall on your computer. However, you can do that later when the solutions listed here did not do the job.

Method 1 — Close Conflicting Programs

When you get a runtime error, keep in mind that it is happening due to programs that are conflicting with each other. The first thing you can do to resolve the problem is to stop these conflicting programs.

  • Open Task Manager by clicking Ctrl-Alt-Del at the same time. This will let you see the list of programs currently running.
  • Go to the Processes tab and stop the programs one by one by highlighting each program and clicking the End Process buttom.
  • You will need to observe if the error message will reoccur each time you stop a process.
  • Once you get to identify which program is causing the error, you may go ahead with the next troubleshooting step, reinstalling the application.

Method 2 — Update / Reinstall Conflicting Programs

Using Control Panel

  • For Windows 7, click the Start Button, then click Control panel, then Uninstall a program
  • For Windows 8, click the Start Button, then scroll down and click More Settings, then click Control panel > Uninstall a program.
  • For Windows 10, just type Control Panel on the search box and click the result, then click Uninstall a program
  • Once inside Programs and Features, click the problem program and click Update or Uninstall.
  • If you chose to update, then you will just need to follow the prompt to complete the process, however if you chose to Uninstall, you will follow the prompt to uninstall and then re-download or use the application’s installation disk to reinstall the program.

Using Other Methods

  • For Windows 7, you may find the list of all installed programs when you click Start and scroll your mouse over the list that appear on the tab. You may see on that list utility for uninstalling the program. You may go ahead and uninstall using utilities available in this tab.
  • For Windows 10, you may click Start, then Settings, then choose Apps.
  • Scroll down to see the list of Apps and features installed in your computer.
  • Click the Program which is causing the runtime error, then you may choose to uninstall or click Advanced options to reset the application.

Method 3 — Update your Virus protection program or download and install the latest Windows Update

Virus infection causing runtime error on your computer must immediately be prevented, quarantined or deleted. Make sure you update your virus program and run a thorough scan of the computer or, run Windows update so you can get the latest virus definition and fix.

Method 4 — Re-install Runtime Libraries

You might be getting the error because of an update, like the MS Visual C++ package which might not be installed properly or completely. What you can do then is to uninstall the current package and install a fresh copy.

  • Uninstall the package by going to Programs and Features, find and highlight the Microsoft Visual C++ Redistributable Package.
  • Click Uninstall on top of the list, and when it is done, reboot your computer.
  • Download the latest redistributable package from Microsoft then install it.

Method 5 — Run Disk Cleanup

You might also be experiencing runtime error because of a very low free space on your computer.

  • You should consider backing up your files and freeing up space on your hard drive
  • You can also clear your cache and reboot your computer
  • You can also run Disk Cleanup, open your explorer window and right click your main directory (this is usually C: )
  • Click Properties and then click Disk Cleanup

Method 6 — Reinstall Your Graphics Driver

If the error is related to a bad graphics driver, then you may do the following:

  • Open your Device Manager, locate the graphics driver
  • Right click the video card driver then click uninstall, then restart your computer

Other languages:

Wie beheben Fehler 3163 (Das Feld ist zu klein, um die Datenmenge zu akzeptieren, die Sie hinzuzufügen versucht haben) — Das Feld ist zu klein, um die Datenmenge zu akzeptieren, die Sie versucht haben, hinzuzufügen. Versuchen Sie, weniger Daten einzufügen oder einzufügen.
Come fissare Errore 3163 (Il campo è troppo piccolo per accettare la quantità di dati che hai tentato di aggiungere) — Il campo è troppo piccolo per accettare la quantità di dati che hai tentato di aggiungere. Prova a inserire o incollare meno dati.
Hoe maak je Fout 3163 (Het veld is te klein om de hoeveelheid gegevens te accepteren die u probeerde toe te voegen) — Het veld is te klein om de hoeveelheid gegevens te accepteren die u heeft geprobeerd toe te voegen. Probeer minder gegevens in te voegen of te plakken.
Comment réparer Erreur 3163 (Le champ est trop petit pour accepter la quantité de données que vous avez tenté d’ajouter) — Le champ est trop petit pour accepter la quantité de données que vous avez tenté d’ajouter. Essayez d’insérer ou de coller moins de données.
어떻게 고치는 지 오류 3163 (필드가 너무 작아 추가하려는 데이터의 양을 수용할 수 없습니다.) — 필드가 너무 작아 추가하려는 데이터의 양을 수용할 수 없습니다. 더 적은 데이터를 삽입하거나 붙여넣으세요.
Como corrigir o Erro 3163 (O campo é muito pequeno para aceitar a quantidade de dados que você tentou adicionar) — O campo é muito pequeno para aceitar a quantidade de dados que você tentou adicionar. Tente inserir ou colar menos dados.
Hur man åtgärdar Fel 3163 (Fältet är för litet för att acceptera mängden data du försökte lägga till) — Fältet är för litet för att acceptera mängden data du försökte lägga till. Prova att infoga eller klistra in mindre data.
Как исправить Ошибка 3163 (Поле слишком маленькое, чтобы принять объем данных, которые вы пытались добавить.) — Поле слишком маленькое, чтобы принять объем данных, которые вы пытались добавить. Попробуйте вставить или вставить меньше данных.
Jak naprawić Błąd 3163 (Pole jest za małe, aby zaakceptować ilość danych, które próbowałeś dodać) — Pole jest za małe, aby zaakceptować ilość danych, które próbowałeś dodać. Spróbuj wstawić lub wkleić mniej danych.
Cómo arreglar Error 3163 (El campo es demasiado pequeño para aceptar la cantidad de datos que intentó agregar.) — El campo es demasiado pequeño para aceptar la cantidad de datos que intentó agregar. Intente insertar o pegar menos datos.

The Author About The Author: Phil Hart has been a Microsoft Community Contributor since 2010. With a current point score over 100,000, they’ve contributed more than 3000 answers in the Microsoft Support forums and have created almost 200 new help articles in the Technet Wiki.

Follow Us: Facebook Youtube Twitter

Last Updated:

07/07/22 12:59 : A Windows 10 user voted that repair method 7 worked for them.

Recommended Repair Tool:

This repair tool can fix common computer problems such as blue screens, crashes and freezes, missing DLL files, as well as repair malware/virus damage and more by replacing damaged and missing system files.

STEP 1:

Click Here to Download and install the Windows repair tool.

STEP 2:

Click on Start Scan and let it analyze your device.

STEP 3:

Click on Repair All to fix all of the issues it detected.

DOWNLOAD NOW

Compatibility

Requirements

1 Ghz CPU, 512 MB RAM, 40 GB HDD
This download offers unlimited scans of your Windows PC for free. Full system repairs start at $19.95.

Article ID: ACX011244EN

Applies To: Windows 10, Windows 8.1, Windows 7, Windows Vista, Windows XP, Windows 2000

Speed Up Tip #47

Optimize Windows With Performance Troubleshooter:

Optimize your Windows 7 and Windows 10 PC using the Performance Troubleshooter for a better and faster speed. This tool can find problems and gives actionable solutions on how to fix them. Just type «troubleshooter» in the search box of your Control Panel.

Click Here for another way to speed up your Windows PC

Microsoft & Windows® logos are registered trademarks of Microsoft. Disclaimer: ErrorVault.com is not affiliated with Microsoft, nor does it claim such affiliation. This page may contain definitions from https://stackoverflow.com/tags under the CC-BY-SA license. The information on this page is provided for informational purposes only. © Copyright 2018

Icon Ex Error Number: Error 3163
Error Name: The field is too small to accept the amount of data you attempted to add
Error Description: The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data.
Developer: Microsoft Corporation
Software: Microsoft Access
Applies to: Windows XP, Vista, 7, 8, 10, 11

Explanation of The field is too small to accept the amount of data you attempted to add

The field is too small to accept the amount of data you attempted to add is a standard sort of runtime error. When it comes to Microsoft Access, software engineers use an arsenal of tools to try to weed out these bugs as good as possible. As much as software developers attempt to prevent it, some minor errors such as error 3163 might not have been found during this phase.

Some users might experience the message «The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data.» while using Microsoft Access. At the time the error 3163 is encountered, the end-user can report the issue to Microsoft Corporation. Microsoft Corporation will go back to the code and fix it and then make an update available for downloading. Therefore, when you encounter a prompt for a Microsoft Access update, it is usually because it’s a solution for fixing error 3163 and other bugs.

What Actually Causes Runtime Error 3163?

The most common occurrences The field is too small to accept the amount of data you attempted to add problems is when loading up Microsoft Access. Here are the three most prominent reasons error 3163 runtime errors occur:

Error 3163 Crash — This is a typical runtime error 3163 error that crashes the machine entirely. Typically this is the result of Microsoft Access not understanding the input, or not knowing what to output in response.

The field is too small to accept the amount of data you attempted to add Memory Leak — If there’s a memory leak in Microsoft Access, it may cause the OS to appear sluggish. Potential triggers may be «infinite loop», or when the program performs a «loop» or repetition over and over again.

Error 3163 Logic Error — Logic errors manifest when the user inputs the correct data but the device produces the wrong result. When the accuracy of Microsoft Corporation’s source code is low, it typically becomes a source of errors.

Microsoft Corporation issues related The field is too small to accept the amount of data you attempted to add can be attributed in most cases to corrupt, missing, or infected Microsoft Access files. Downloading and replacing your Microsoft Corporation file can fix the problem in most cases. Furthermore, keeping your registry clean and optimized can prevent invalid file path (like The field is too small to accept the amount of data you attempted to add) and file extension references, so we recommend running a registry scan cleanup regularly.

Common The field is too small to accept the amount of data you attempted to add Issues

These The field is too small to accept the amount of data you attempted to add-related Microsoft Access Troubles Include:

  • «The field is too small to accept the amount of data you attempted to add Error.»
  • «The field is too small to accept the amount of data you attempted to add is not a valid Win32 application.»
  • «Sorry, The field is too small to accept the amount of data you attempted to add encountered a problem.»
  • «The field is too small to accept the amount of data you attempted to add can’t be located.»
  • «The field is too small to accept the amount of data you attempted to add can’t be found.»
  • «Start-up error in application: The field is too small to accept the amount of data you attempted to add.»
  • «The field is too small to accept the amount of data you attempted to add not executing.»
  • «The field is too small to accept the amount of data you attempted to add failed.»
  • «Software Path Fault: The field is too small to accept the amount of data you attempted to add.»

Microsoft Access-involved The field is too small to accept the amount of data you attempted to add issues happen during install, when The field is too small to accept the amount of data you attempted to add-related software is running, startup or shutdown, or during the Windows installation process. Recording The field is too small to accept the amount of data you attempted to add errors inside Microsoft Access is crucial to locate Windows faults and relaying back to Microsoft Corporation for repair options.

Causes of The field is too small to accept the amount of data you attempted to add Errors

The field is too small to accept the amount of data you attempted to add issues are caused by a corrupt or missing The field is too small to accept the amount of data you attempted to add, invalid registry keys associated with Microsoft Access, or a malware infection.

Primarily, The field is too small to accept the amount of data you attempted to add issues are produced by:

  • Corrupted or invalid The field is too small to accept the amount of data you attempted to add registry entry.
  • Virus or malware infection that has corrupted the The field is too small to accept the amount of data you attempted to add file or related Microsoft Access program files.
  • A different program (not related with Microsoft Access) deleted The field is too small to accept the amount of data you attempted to add maliciously or by mistake.
  • Another software application in conflict with The field is too small to accept the amount of data you attempted to add.
  • Microsoft Access (The field is too small to accept the amount of data you attempted to add) corrupted during download or install.

Product by Solvusoft

Download Now
WinThruster 2022 — Scan your PC for computer errors.

Compatible with Windows 11, 10, 8, 7, Vista, XP and 2000

Optional Offer for WinThruster by Solvusoft | EULA | Privacy Policy | Terms | Uninstall

Ошибка говорит: «Поле слишком маленькое, чтобы принять объем данных, которые вы пытались добавить. Попробуйте вставить или вставить меньше данных».

Предполагается, что база данных будет извлекать информацию из листа Excel, который ей передается, и импортировать информацию в набор записей текстового поля. Однако текстовое поле, расположенное где-то вниз, ограничено 50 символами. Как изменить максимальный размер текстового поля? Спасибо за любую помощь

Это всего лишь часть кода, и текстовое поле, которое я пытаюсь сделать больше, это «Idea_ #», который является последней строкой кода, который я опубликовал

Sub Read_Recommendations() On Error GoTo error_code Dim FD As Office.FileDialog Dim xlapp Как Excel.Application Dim xlsheet Как Excel.Решетка Dim xlbook Как Excel.Workbook

Dim db As Database
Dim rs As Recordset
Dim sql As String

Dim WP As String
Dim row As Integer

Dim File As String
Set db = CurrentDb

Set FD = Application.FileDialog(msoFileDialogOpen)
If FD.Show = True Then
File = FD.SelectedItems(1)
Set xlapp = CreateObject("Excel.Application")
Set xlbook = GetObject(File)
Set xlsheet = xlbook.Worksheets("Recommendation Approval Form")

Dim protection As Boolean
With xlsheet

'support unprotected worksheets
protection = xlsheet.ProtectContents
If protection Then xlsheet.Unprotect "veproject"

WP = .Range("WP_Number")
' Check that active WP and the WP of the uploading form is the same
' If WPs are different, awares users and prompts user whether or not to continue
Dim DifferentProject As String
If Not get_WP = WP Then
DifferentProject = MsgBox("You are uploading to the project with WP number: " & WP & " which is not the active project. Do you wish to continue?", vbYesNo)
If DifferentProject = 7 Then Exit Sub
End If

' Check that WP is correct by checking if it exists in the Record Information table

' delete the existing recomendations, we want to keep the most recent recomendations
' perhaps change this to a dialog in the future
sql = "DELETE * from tbl_recomendations WHERE WP_Number = '" & WP & "'"

db.Execute (sql)
row = 8

Set rs = db.OpenRecordset("tbl_recomendations")
Do While .Range("D" & row) <> ""
rs.AddNew
rs("WP_Number") = WP
rs("Idea_#") = (.Range("C" & row))

……..

  • Home
  • VBForums
  • Visual Basic
  • Database Development
  • [RESOLVED] runtime error’3163 amount of data to large to add try inserting?

  1. Feb 1st, 2006, 10:57 PM


    #1

    Quizton is offline

    Thread Starter


    Addicted Member

    Quizton's Avatar


    Resolved [RESOLVED] runtime error’3163 amount of data to large to add try inserting?


    getting a runtime error
    say amount of data to large and tips to try inserting?
    I thought I was inserting here

    VB Code:

    1. rs.AddNew

    2. rs("RmdName") = txtRmdName.Text

    3. rs("RmdDetails") = txtRmdDetails.Text

    4. rs("RmdDate") = txtRmdDate.Text

    5. rs("RmdTime") = txtRmdTime.Text

    6. rs("RmdMandatory") = txtRmdMandatory.Text

    7. rs("RmdEscalation") = txtRmdEscalation.Text

    8. rs.Update

    what would be the proper way to insert in DAO then so I could enter a paragraph of text if I wanted to?
    thanks all

    Last edited by Quizton; Feb 1st, 2006 at 11:12 PM.


  2. Feb 1st, 2006, 11:28 PM


    #2

    Re: runtime error’3163 amount of data to large to add try inserting?

    Did you use a Memo field?


  3. Feb 2nd, 2006, 01:36 AM


    #3

    Quizton is offline

    Thread Starter


    Addicted Member

    Quizton's Avatar


    Re: runtime error’3163 amount of data to large to add try inserting?

    no its a textbox.

    it can add save edit and is searchable but If I set multiline to true and try saving two lines of data it gives me the error


  4. Feb 2nd, 2006, 01:40 AM


    #4

    Re: runtime error’3163 amount of data to large to add try inserting?

    Looks like one of your table fields is defined too small to hold the data you trying to add. Could it be txtRmdDetails contains more then 255 characters?

    VB/Office Guru� (AKA: Gangsta Yoda)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum. Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru� Word SpellChecker�.NETVB/Office Guru� Word SpellChecker� VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24″ LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6


  5. Feb 2nd, 2006, 01:56 AM


    #5

    Quizton is offline

    Thread Starter


    Addicted Member

    Quizton's Avatar


    Re: runtime error’3163 amount of data to large to add try inserting?

    It was only 2 lines of data so about this big

    bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
    bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb

    wonder if I could use the fixed length in the visdata manager set to like 250?

    thanks for the replies


  6. Feb 2nd, 2006, 01:58 AM


    #6

    Re: runtime error’3163 amount of data to large to add try inserting?

    I dont use the VisData Manager but couldnt you go into Access, if thats what your using, and increase the field length? The default for a text field is 50 characters. And a vbNewLine is counted as two chars.

    VB/Office Guru� (AKA: Gangsta Yoda)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum. Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru� Word SpellChecker�.NETVB/Office Guru� Word SpellChecker� VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24″ LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6


  7. Feb 2nd, 2006, 02:44 AM


    #7

    Quizton is offline

    Thread Starter


    Addicted Member

    Quizton's Avatar


    Re: runtime error’3163 amount of data to large to add try inserting?

    Ok Ive been playin around with it and now I understand
    using memo as the field will work well as well as adjusting the the text from 50 to 250
    thanks all


  8. Feb 2nd, 2006, 02:47 AM


    #8

    Re: [RESOLVED] runtime error’3163 amount of data to large to add try inserting?

    You can adjust the text field length up to 255. anything over that your needing a Memo field type.

    VB/Office Guru� (AKA: Gangsta Yoda)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum. Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru� Word SpellChecker�.NETVB/Office Guru� Word SpellChecker� VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24″ LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6


  9. Feb 2nd, 2006, 10:48 AM


    #9

    Quizton is offline

    Thread Starter


    Addicted Member

    Quizton's Avatar


    Re: [RESOLVED] runtime error’3163 amount of data to large to add try inserting?

    good to know
    I thank ya all again

    oh….how much can a memo use? 400+?


  10. Feb 2nd, 2006, 12:06 PM


    #10

    Re: [RESOLVED] runtime error’3163 amount of data to large to add try inserting?

    65,535 when entering data through the user interface; 1 gigabyte when entering data programmatically.

    VB/Office Guru� (AKA: Gangsta Yoda)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum. Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru� Word SpellChecker�.NETVB/Office Guru� Word SpellChecker� VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24″ LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6


  • Home
  • VBForums
  • Visual Basic
  • Database Development
  • [RESOLVED] runtime error’3163 amount of data to large to add try inserting?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  • BB code is On
  • Smilies are On
  • [IMG] code is On
  • [VIDEO] code is On
  • HTML code is Off

Forum Rules


Click Here to Expand Forum to Full Width

Dim MedSelectQuery As String
Dim fso, f As Object
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFile(strLocalBE)
Dim FileCreatedDate As Date
If f <> "" Then
    FileCreatedDate = f.DateCreated
Else
    MsgBox "Missing data in path file -- unable to synchronize.  Contact IS.", 
vbCritical, "Synchronization Failed"
    Me.Label0.Caption = "Synchronization Failed -- Missing File Paths.  
Contact IS!"
    Exit Sub
End If
    
Set fso = Nothing
Set f = Nothing

........

FileCreatedDate = FileDateTime(strLocalBE)
        'query uses date created date
        MedSelectQuery = "SELECT * " & _
                         "FROM [C:PathDatabase.accdb].tblMedData AS tblLaptop INNER JOIN [I:PathDatabase_be.accdb].tblMedData " & _
                         "AS tblServer ON tblLaptop.InvNo = tblServer.InvNo" & _
                         "WHERE ((tblLaptop.DateChanged)>=(" & FileCreatedDate & ")) And ((tblServer.DateChanged)>=(" & FileCreatedDate & ")) And " & _
                         "(((tblLaptop.DetailsChanged)=True And (tblServer.DetailsChanged)=True And (tblLaptop.Ratio)<>tblServer!Ratio)) " & _
                         "Or (((tblLaptop.Duration)<>tblServer!Duration)) Or (((tblLaptop.Withdrawal)<>tblServer!Withdrawal)) Or (((tblLaptop.WaterOrInject)<>tblServer!WaterOrInject))" & _
                         "Or (((tblLaptop.ChangedBy)<>tblServer!ChangedBy)) Or (((tblLaptop.Deleted)<>tblServer!Deleted));"
    End If
    
    MsgBox MedSelectQuery

    '### Get path to current back end
    myPath = Left(CurrentDb.name, InStr(CurrentDb.name, ".accdb") - 1) & "_be.accdb"
    strFEPath = CurrentDb.name
    
    If CurrentProject.Path <> strLocalPath Then 'not being ran from laptop or ran from wrong location -- don't allow sync
        'not being ran from laptop or ran from wrong location -- don't allow sync
        Me.Label0.Caption = "Synchronization not allowed from database in " & CurrentDb.name
        dteLogDate = Now()
        '### Use command to insert log record into table in same database
        If strFEPath = strLocalPath Then
            CurrentDb.Execute "insert into tblSyncLog (LoginID,SyncDate,syncAction)  values ('" & strLogin & "', #" & dteLogDate & "#, '" & " FAILED TO SYNC FROM " & CurrentDb.name & "');"
        Else
            CurrentDb.Execute "insert into tblSyncLog (LoginID,SyncDate,syncAction) in strMasterFEUNC values ('" & strLogin & "', #" & dteLogDate & "#, '" & " FAILED TO SYNC FROM " & CurrentDb.name & "');"
        End If
        GoTo Exit_MedDataQuery_Click
    Else
        'correct path, continue sync
        If DCount("*", MedSelectQuery) > 0 Then

Понравилась статья? Поделить с друзьями:

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

  • Runtime error 217 at 00414dee
  • Runtime error 217 at 0001a321
  • Runtime error 217 0000adac
  • Runtime error 216 что это
  • Runtime error 5854 слишком длинный строковый параметр

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии