Form Refresh Problem

ThisIsntMyRealName

Board Regular
Joined
May 23, 2009
Messages
69
Hi guys, I have a form displayed to the user in ACCESS 2007. When a user clicks on a button, it runs an agent that performs some actions. During the running of the agent, I'd like to set a textbox back on the form itself. The only problem is that the textbox only updates 3 times during the course of the agent, even though its supposed to be updating about 300 times or so, or as many loops as the code takes. Any hints on getting it to update more frequently? here is the code:

'LET USER KNOW OF STATUS OF AGENT
Forms!frmAdage_IMMP_Import!TxtProgramStatus.Value = "Processing Excel Rows..." & iCounter
DoCmd.Requery

'THIS UPDATE FOR THE STATUS BAR WORKS JUST FINE
strTempStatus = SysCmd(acSysCmdSetStatus, "Processing Excel Rows..." & iCounter)
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Try researching these and see if either of these will help:
Code:
Me.Recalc
or
Code:
Me.Repaint
With the Repaint, you might need to reference a specific object and not just the form itself. If so, just add it in there.
 
Upvote 0
Bob, I know I have probably asked this before, but I still can't grasp what DoEvents does and how it works. Placing DoEvents in between the lines of code will do what?
 
Upvote 0

Forum statistics

Threads
1,224,559
Messages
6,179,517
Members
452,921
Latest member
BBQKING

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top