DRW
08-31-2009, 03:16 AM
Hello All
I have been trying to track down a problem for a few months. I am running a VB6 app over a network with an access97 database. I know, LEGACY! I am tidying up and will move to SQL server later in the year.
Here is the problem.
When running across a network some terminals carry on functioning when there is a network disconnect. Even to the point of producing documents from the system from records which subsequently do not exists on the server database. Weird or what?
I have by pure chance experienced something similar on my office network. This morning my wife tripped the power when using a dodgy iron. (A rare occasion). My server and terminal are on a UPS but the router is not. My app continued to work even when the network was down.
I find that if I run my app and open the customer form, flick through the first 10 or so customer records, then literally pull out the power supply to my router, I can select one of the customer records that I had previously viewed and all appears as normal! It’s like the network is still connected and I can use the records.
The programme is opening a recordset based on a database object that is not connected.
If I try to view a record that was not previously viewed when the connection was ok then I get a 'Disk or Network error (3043).
I assume that the data must be being cached locally, to save network traffic and increase speed of retrieval.
The problem is that if there is a network problem when a user is creating an invoice then I want the error to occur when the network is lost. I don't want the invoice table to be updated and an invoice printed from a local cache of data if the network database is not being updated.
Any ideas on how to solve this?
:confused:
I have been trying to track down a problem for a few months. I am running a VB6 app over a network with an access97 database. I know, LEGACY! I am tidying up and will move to SQL server later in the year.
Here is the problem.
When running across a network some terminals carry on functioning when there is a network disconnect. Even to the point of producing documents from the system from records which subsequently do not exists on the server database. Weird or what?
I have by pure chance experienced something similar on my office network. This morning my wife tripped the power when using a dodgy iron. (A rare occasion). My server and terminal are on a UPS but the router is not. My app continued to work even when the network was down.
I find that if I run my app and open the customer form, flick through the first 10 or so customer records, then literally pull out the power supply to my router, I can select one of the customer records that I had previously viewed and all appears as normal! It’s like the network is still connected and I can use the records.
The programme is opening a recordset based on a database object that is not connected.
If I try to view a record that was not previously viewed when the connection was ok then I get a 'Disk or Network error (3043).
I assume that the data must be being cached locally, to save network traffic and increase speed of retrieval.
The problem is that if there is a network problem when a user is creating an invoice then I want the error to occur when the network is lost. I don't want the invoice table to be updated and an invoice printed from a local cache of data if the network database is not being updated.
Any ideas on how to solve this?
:confused: