Hello
I have noticed that access usually "stops responding" when i activiate large SQL operations.
This is a problem in the case that i want i. e. a postcounter which tells the user how many post that are left in the update process.
I usally use this type of code.
The SQL code does exactly what it supposed to, except that access "stops responding" after a some 50 posts (of 2500) and the me.reapint userinformation feature does not work no more.
I have noticed that access usually "stops responding" when i activiate large SQL operations.
This is a problem in the case that i want i. e. a postcounter which tells the user how many post that are left in the update process.
I usally use this type of code.
Code:
Dim RST as NEW ADODB.Recordset
RST.open sometable, , CurrentProject.Connection, adOpenDynamic, adLockOptimistic
do untill RST.eof
with RST
(do something, maybe a dlookup feature)
i = i +1
me.etk_information.caption = "Working on post " & i & " of a total " & totalpost & " posts"
me.repaint
loop
RST.close
Set RST = nothing
The SQL code does exactly what it supposed to, except that access "stops responding" after a some 50 posts (of 2500) and the me.reapint userinformation feature does not work no more.
Comment