Solved

VB on MS ACCESS 20 : # ERROR on records field

Posted on 1998-07-23
2
144 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
2 Comments
 
LVL 2

Expert Comment

by:swilt
Comment Utility
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
Comment Utility
You have probably damaged the file.  Perform a repair and compact and see if it clears up...
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now