Open the Form Directly (1 Viewer)

Pinkoto

Registered User.
Local time
Today, 04:31
Joined
Jun 25, 2014
Messages
73
Hello, im trying to make my form open directly when i open my access file.accdb. When i double click on my .accdb can it be done to open directly and only my form. I found a way to open my form but it opens the access program in the background.
 

Eljefegeneo

Still trying to learn
Local time
Today, 04:31
Joined
Jan 10, 2011
Messages
904
Not sure if this is what you are looking for, but I use it for users of my db that I do not want them to see the tool bar or navigation pane. Of course, you will have to have a way of "unhiding" both of them.
Code:
'Hides the navigation pane for users who get this as the startup screen
DoCmd.NavigateTo "acNavigationCategoryObjectType"
DoCmd.RunCommand acCmdWindowHide
'hide the tool bar too
DoCmd.ShowToolbar "Ribbon", acToolbarNo
 

Pinkoto

Registered User.
Local time
Today, 04:31
Joined
Jun 25, 2014
Messages
73
where do i write this code
 

smig

Registered User.
Local time
Today, 14:31
Joined
Nov 25, 2009
Messages
2,209
I'm not familiar enough with Access 2010 and up.
Create an AutoExec macro from there run the code you want.

Ypu can't hide the access window, you can only hide the window that hold all the access objects
 

Eljefegeneo

Still trying to learn
Local time
Today, 04:31
Joined
Jan 10, 2011
Messages
904
I have the code in the On Current event. I am not sure if that is the optimal event to use, but it works for me.
 

Pinkoto

Registered User.
Local time
Today, 04:31
Joined
Jun 25, 2014
Messages
73
i want the form to be the only thing that opens when i open my access file, not when i open my form. how can i do that?
 

Eljefegeneo

Still trying to learn
Local time
Today, 04:31
Joined
Jan 10, 2011
Messages
904
I am not sure exactly what you mean or why you want this, but if you set the form to be opened on start of the Access program, then it will be the only thing that appears. Go to Options, Current Db, set the display form as the form you want to open. Then with the code I gave you, it will open and no other forms will be displayed.

If this is not what you want, then it is beyond my area of expertise.
 

smig

Registered User.
Local time
Today, 14:31
Joined
Nov 25, 2009
Messages
2,209
You can't hide the access window
 

Users who are viewing this thread

Top Bottom