Solved

VB on MS ACCESS 20 : # ERROR on records field

Posted on 1998-07-23
2
145 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

896 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

14 Experts available now in Live!

Get 1:1 Help Now