Solved Some VBA Code Being Ignored (1 Viewer)

Badger1961Uk

New member
Local time
Today, 07:15
Joined
Oct 18, 2023
Messages
5
The following is in an after update event of a form :-

If Not IsNull(ProposedInspectionDate) Then
DoCmd.Hourglass True
lblPleaseWait.Visible = True
Forms![_Assign_Inspections].Form.Refresh
Call CalculateOutstandingTanks
lblPleaseWait.Visible = False
Forms![_Assign_Inspections].Form.Refresh
End If

The Hourglass, llblPleaseWait.Visible and Refresh commands are being ignored but the system processes the cone in the Proceedure Call.

However, if I preceed the code with the Stop Command and then step through the code manually, the commands all work.

Any ideas anyone ?
 

Minty

AWF VIP
Local time
Today, 07:15
Joined
Jul 26, 2013
Messages
10,371
Try a
Me.Repaint

After making the label visible, also it could be happening so fast you don't see it.
 

Users who are viewing this thread

Top Bottom