Solved

VB on MS ACCESS 20 : # ERROR on records field

Posted on 1998-07-23
2
150 Views
Last Modified: 2012-05-04
I am using VB3 to code application using MS ACCESS 20 as backend database. Once, my station "Hang" while I am running the VB application which accessing the database.
I reboot, and I got #error in my access database records.
? How and what is the cause ? How to avoid this things from happening  
 
0
Comment
Question by:benng
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Expert Comment

by:swilt
ID: 1466573
because the program is hanging, it is not closing the recordset properly and the #error in the field means the the data has not been written properly.

Hopefully if you have good error handling and your code is working as intended.
And of course you close your recordsets when not needed it will be alright.

When you step through the code in debug does it work ?
Does the code "Hang" all the time or just now and then ?
0
 
LVL 4

Accepted Solution

by:
trkcorp earned 50 total points
ID: 1466574
You have probably damaged the file.  Perform a repair and compact and see if it clears up...
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question