PDA

View Full Version : What event is sent after all fields are displayed?



sadegiorgio
05-24-2010, 02:28 AM
Hi,

I've got a basic application which poles a directory for a file, then sends me an sms if the file is found. That all works fine, but I'm trying to start the process automatically as soon as all of the fields/lists have been populated and displayed; not before. In 'C' I'd use the 'PostMsg' function to ensure all events complete (including rendering of all fields) before acting. VBA doesn't seems to support this and I haven't been able to find a Form event that is sent after all of the fields/lists have been populated and then displayed!

Can anyone help? Thanks.

Regards,
Stephen.

OBP
05-24-2010, 07:12 AM
Stephen, welcome to the Forum.
I am not sure what is the last Event.
Have you tried the AfterUpdate Eventwhen entering data?
Or if you are not entering any data try the After Final Render.

sadegiorgio
05-24-2010, 02:08 PM
OBP, thanks for your suggestions. Unfortunately I have tried these two events but neither are triggered as soon as you start the application/form and all of the fields have been displayed!

AfterUpdate is only triggered after you update the data and AfterFinalRender only appears to be triggered if you have a PivotChart not when you just have a normal form with fields and a datasheet or list!

Any further suggestions would be appreciated, thanks.

OBP
05-25-2010, 03:55 AM
The On Current event works each time the Form record is renewed.
The On load works when the Form is loaded for the first time.