Solved

VB on MS ACCESS 20 : # ERROR on records field

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Determine Range to Select 5 48
VBA: Select SQL query based on a config Sheet v2 11 44
VB 6 error 5 in windows 10 but not in XP 7 56
Excel Automation VBA 19 70
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

770 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