Ribbon before AutoExec (1 Viewer)

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 11:37
Joined
May 7, 2009
Messages
19,238
do you have loadimage on the ribbon
Code:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="OnRibbonLoad" loadImage="LoadImages">
 

smig

Registered User.
Local time
Today, 06:37
Joined
Nov 25, 2009
Messages
2,209
do you have loadimage on the ribbon
Code:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="OnRibbonLoad" loadImage="LoadImages">

No :eek:
What does it do ?
 

isladogs

MVP / VIP
Local time
Today, 04:37
Joined
Jan 14, 2017
Messages
18,218
1. yes, the Ribbon is in the Access' options
2. How can I open this form with no AutoExec macro?

2. Set the startup form in Access options!
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 11:37
Joined
May 7, 2009
Messages
19,238
as it connotes it Loads the Image of the ribbon.
 

smig

Registered User.
Local time
Today, 06:37
Joined
Nov 25, 2009
Messages
2,209
as it connotes it Loads the Image of the ribbon.
Why do I need to load an image ?

I tried to put this, but it's not working
Code:
loadImage = "fnAutoExec">
 
Last edited:

isladogs

MVP / VIP
Local time
Today, 04:37
Joined
Jan 14, 2017
Messages
18,218
Not working for me :(
will not load the ribbon if there is a MsgBox in code

I sense we're going round in circles....see post #15
Anything involving user interaction such as a message box will prevent the code completing

EDIT:
In addition, arnel seems to be suggesting a totally different approach.
Don't try & do both in the same app
 
Last edited:

deletedT

Guest
Local time
Today, 04:37
Joined
Feb 2, 2019
Messages
1,218
How about uploading a simplified version of your database and let others try it?
 

smig

Registered User.
Local time
Today, 06:37
Joined
Nov 25, 2009
Messages
2,209
As suggested By Tara I uploaded a test version of this AutoExec issue

I hope we can find a working solution to load the Ribbon before AutoExec stop

Thank you all for your time :)
 

Attachments

  • AutoExecTest.zip
    450.6 KB · Views: 63

isladogs

MVP / VIP
Local time
Today, 04:37
Joined
Jan 14, 2017
Messages
18,218
Attached is a quick and simple example using your ribbon and the approach I suggested way back in post #15. I assume you didn't actually try that method!

I've used a new startup form frmStart with a timer event that triggers a message after 1 second.
I've renamed your autoexec macro to disable it.

I recommend you either run all your checks from the startup form or use an autoexec just for code which doesn't require user interaction. If you do decide to use autoexec, a submacro isn't necessary

The attached works. The modified ribbon appears before the form loads then the message shortly after. It can be improved further but hopefully you get the point
 

Attachments

  • StartupTest.zip
    459.8 KB · Views: 62
Last edited:

smig

Registered User.
Local time
Today, 06:37
Joined
Nov 25, 2009
Messages
2,209
Attached is a quick and simple example using your ribbon and the approach I suggested way back in post #15. I assume you didn't actually try that method!

I've used a new startup form frmStart with a timer event that triggers a message after 1 second.
I've renamed your autoexec macro to disable it.

I recommend you either run all your checks from the startup form or use an autoexec just for code which doesn't require user interaction. If you do decide to use autoexec, a submacro isn't necessary

The attached works. The modified ribbon appears before the form loads then the message shortly after. It can be improved further but hopefully you get the point

I did try your suggestion.
Now I see you put the code into the Form_Timer() event and not into the OnLoad() event

This seems to work very well :)

Thanks a lot
 

isladogs

MVP / VIP
Local time
Today, 04:37
Joined
Jan 14, 2017
Messages
18,218
I did try your suggestion.
Now I see you put the code into the Form_Timer() event and not into the OnLoad() event

This seems to work very well :)

Thanks a lot

Hooray. Glad you now see what I meant.
I've used that method for years and knew it worked.
I think you may have been getting too many different bits of advice at once :D
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 11:37
Joined
May 7, 2009
Messages
19,238
without hidden form it works for me.
 

Attachments

  • PMIT_3.zip
    880.6 KB · Views: 64

smig

Registered User.
Local time
Today, 06:37
Joined
Nov 25, 2009
Messages
2,209
without hidden form it works for me.

I saw it load the FrontPage form and the Ribbon from the App Access' options
Where is the StartUp/AutoExec routines ?
 

smig

Registered User.
Local time
Today, 06:37
Joined
Nov 25, 2009
Messages
2,209
Without the BE file it doesn't load properly....:D
To me it does seem a bit like using a sledgehammer to crack a nut

Is there any way to hide or minimize the form?
I tried using me.visible = false in the OnLoad and in the OnOpen event with no luck
 

isladogs

MVP / VIP
Local time
Today, 04:37
Joined
Jan 14, 2017
Messages
18,218
Smig
You've quoted me but I was referring to arnel's uploaded file.
Which of us is this addressed to?

In case you meant my version, attached is a modified version where the start form is hidden.
You do this by opening the form hidden from an autoexec macro. Also remove it as the startup form in Access options.

Obviously you would need to add code to that form to then open the main form / login form when all your code checks have run
 

Attachments

  • StartupTest - v2.zip
    440.5 KB · Views: 57
Last edited:

smig

Registered User.
Local time
Today, 06:37
Joined
Nov 25, 2009
Messages
2,209
Smig
You've quoted me but I was referring to arnel's uploaded file.
Which of us is this addressed to?
Ooops, Sorry, it was addressed to you

Is there any way to hide or minimize the StartUp form?
I tried using me.visible = false both in the OnLoad and in the OnOpen event with no luck
 

Users who are viewing this thread

Top Bottom