Irish_Griffin
Board Regular
- Joined
- Jan 16, 2009
- Messages
- 138
Hey guys,
I've got a problem with my run time on a updater I run onto my database.
Background :
- My MDB file is updated hourly via a macro run on the server. This macro takes data from our 30 YEAR OLD software system, and applies it into my MDB file. Then it does some basic data manipulations.
- This updater function takes around 5 minutes to run.
Problem :
When a user sends data to be saved into the MDB while the updater is running, something strange happens.... The updater then take 30-40min to complete !!!
Details:
- Win XP
- Excel 2003
- ADO 2.8
Code
Here is the connection string I'm using both in the updater and in the user interface :
I'm hoping people can offer input to my adOpenStatic and adLockOptimistic method ..... is there a more suited method ???
Many Thanks
- Griff
I've got a problem with my run time on a updater I run onto my database.
Background :
- My MDB file is updated hourly via a macro run on the server. This macro takes data from our 30 YEAR OLD software system, and applies it into my MDB file. Then it does some basic data manipulations.
- This updater function takes around 5 minutes to run.
Problem :
When a user sends data to be saved into the MDB while the updater is running, something strange happens.... The updater then take 30-40min to complete !!!
Details:
- Win XP
- Excel 2003
- ADO 2.8
Code
Here is the connection string I'm using both in the updater and in the user interface :
Code:
Dim SQL_Text As String
Dim Connection_String as String
Dim RS As ADODB.Recordset
Set RS = New ADODB.Recordset
SQL_Text = "SELECT * FROM [dropdown_lists]"
RS.Open SQL_Text, Connection_String, adOpenStatic, adLockOptimistic
I'm hoping people can offer input to my adOpenStatic and adLockOptimistic method ..... is there a more suited method ???
Many Thanks
- Griff