473,320 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

VB6 Access Jet Problem

I have an invoicing system that uses a VB6 program to post new invoice entries to a centralized Vendor management system (also in VB6), via a Web server and some ASP code. The system has been in production for some time now, but one pesky little problem keeps surfacing periodically.

System Description:
1. For each new line on an invoice, a specially formatted query line is appended to an Access database along with a blank time/date field.
2. A polling program running as a service periodically queries the database to see if there are any lines with blank time/date fields. When one is found, it is posted to a text file on the Web Server, and the the time/date field is updated in the database.
3. On the centralized system, another VB6 program (also running as a service) polls the text file on the Web Server to see if there are any new invoice lines. When one is found, it is added to the centralized database and deleted from the text file.

Very occasionally (about once every 3 months), an invoice line will be posted to the central database twice. My first thought was that it was a timing problem on the server, but after analyzing the log files involved, it now appears the problem is in the updating of the Access database (step 2 above).

09:46:58 - MPOLL from Manta database and posted to text file
09:47:01 - QREAD from text file and added to Manco database
09:47:01 - Web Server instructed to delete line from text file
09:47:11 - QREAD nothing found to process in text file
09:47:18 - MPOLL from Manta database and posted to text file
09:47:21 - QREAD from text file and added again to Manco database
09:47:21 - Web Server instructed to delete line from text file
09:47:31 - QREAD nothing found to process in text file
09:47:38 - MPOLL from Manta database and posted second line to text file
09:47:41 - QREAD from text file and added second line to Manco database
09:47:41 - Web Server instructed to delete line from text file
09:47:51 - QREAD nothing found to process in text file

The Access database (Access Jet 4.0) shows the time/date field as 09:47:18. This means that the update did not occur (nothing in the error log), or the data in the field was overwritten by the second update (seems to be the case). Is it possible that the Jet Engine held the record in cache until the second update query, and was overwritten? If so, how do I force the Jet Engine to write the data to the database before it queries for a blank timedate field again? My impression is that the requery should force the write cache to be emptied.

J.A. Coutts
Dec 19 '06 #1
0 1441

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed...
13
by: Al the programmer | last post by:
I need to access the serial ports on my webserver from an asp.net page. I have no problem accessing the serial ports from a windows form application, but the code doesn't work in asp.net. I have...
17
by: DaveG | last post by:
Hi all I am planning on writing a stock and accounts program for the family business, I understand this is likely to take close to 2 years to accomplish. The stock is likely to run into over a...
5
by: B1ackwater | last post by:
We've fooled around with Access a bit, but only using the single-user store-bought version. It seems to be a good database - versatile and infinitely programmable - and can apparently be used as a...
34
by: Mathieu Trentesaux | last post by:
Hello I downloaded Office 2007 for this reason : It seems, once again, that it is impossible to save any modification done in a VBA library, from the main project in Access. The save button...
21
by: Bigpond News | last post by:
Work at a large site - 1000+ PC's. Mixture of Win98 & WinXP. Majority of applications using Access 97. If I compile the Acc97 application on a Win98 PC, the .mde will run perfectly on both...
18
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft...
7
by: clintonG | last post by:
To all Microsoft partners and customers who have been unable to download recently or access ASP.NET documentation from the msdn2 website and for all of those customers who have been lied to and...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.