My Assistant
![]() ![]() |
|
|
Jan 22 2007, 08:14 PM
Post
#1
|
|
|
UtterAccess Enthusiast Posts: 69 From: Melbourne Australia |
Am having trouble making a database perform some actions after the main meu form is in view, but before anything is enabled for the users to touch.
I have a routine that happily puts some data into a table in the database, but I want the users to be able to see what is happening by means of a label caption. All of this works if driven from a button on the form, but I want it to be automatic. I have tried instigating this in the on load, on activate, on current events, but the form does not display until after all the processing has occurred. This seems at odds with all the MS help files. HALP!!!! |
|
|
|
Jan 22 2007, 09:35 PM
Post
#2
|
|
|
UtterAccess VIP Posts: 18,396 From: Oklahoma City, Oklahoma |
You can do it in the form's "On Open" Event and place this at the top before your other code:
DoCmd.Maximize or Me.Visible = True Hope this helps... |
|
|
|
Jan 22 2007, 09:50 PM
Post
#3
|
|
|
UtterAccess Enthusiast Posts: 69 From: Melbourne Australia |
Thanks heaps. The visible = true works.
Wonder why the form doesn't become visible on its own? Steve |
|
|
|
Jan 23 2007, 09:27 AM
Post
#4
|
|
|
UtterAccess VIP Posts: 18,396 From: Oklahoma City, Oklahoma |
You're welcome!
The best I can figure out is that it does not display until the form has finished loading or if the form is updated with VBA (or maybe a macro - I do not use macros so not sure). |
|
|
|
Jan 23 2007, 09:04 PM
Post
#5
|
|
|
UtterAccess Enthusiast Posts: 69 From: Melbourne Australia |
I wouldn't expect you to use macros, neither do I. But I got seriously annoyed with Redmond when their descriptions of when events occurr do not seem to match the actuality.
Thanks for your time. Steve. |
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 18th May 2013 - 10:52 PM |