?
Solved

VB on MS ACCESS 20 : # ERROR on records field

Posted on 1998-07-23
2
Medium Priority
?
152 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month11 days, 17 hours left to enroll

752 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