DataBase - Hide Access Window, Database Window, etc Showing only User Forms?????
Asked By Bob
05-Dec-09 06:47 PM
Hello,
I have just written a small app in Access 2003 in VBA. When the application starts it show the access windos, database window, then the UserForm
window appears. How do I hide all windows except the userform???? I have tried minimiz but when I minimize the access window, the userform goes away
also.
Thanks for your help,
Bob
Access 2003
(1)
VBA
(1)
Database
(1)
Window
(1)
Edison
(1)
Minimiz
(1)
Windos
(1)
Jack Leach replied to Bob
In versions earlier than 2007, Startup Options can be found under the Tools
menu. Here you can specify if you want the database window to show or not.
Create an .mde (Tools, Database Utilities, Create MDE in versions < 2007) to
remove any design functionality from the application.
Hiding the access window itself is a bit trickier. I will post a link here to
a module at mvps.org that will do this for you, but be warned... you must
have superb error handling. This is a very difficult task to pull off
without unwanted side effects. In many cases this requires a restructure of
the all the code in your application.
http://www.mvps.org/access/api/api0019.htm
hth
--
Jack Leach
www.tristatemachine.com
-Thomas Edison (1847-1931)
Jack Leach replied to Jack Leach
This is not to say that 2007 does not have these options, but I have never
used the program, and hence am not sure where to find them...
--
Jack Leach
www.tristatemachine.com
-Thomas Edison (1847-1931)
Armen Stein replied to Bob
Hi Bob,
Look in Tools | Startup Options. You can control those things and
more. Hold down the Shift key when launching your database to skip
the Startup Options and open it as a developer.
Armen Stein
Microsoft Access MVP
www.JStreetTech.com
DataBase Problem with QueryDefs in VBA I am attempting to get a list of all queries in my database which have parameters, via the following: Dim qry As DAO.QueryDef For Each qry In Debug.Print qry.Name End If Next qry This fails, with RTE 3078 (MS Jet database engine cannot find query 'qryOrders_Arisings') If I omit the inner If statement, and run the qry.Name Next qry This list does not include qryOrders_Arisings (which was previously in the database, but was deleted ages ago). If I change the code to: For Each qry In you have Name Autocorrect on maybe not. good luck! - - Jack Leach www.tristatemachine.com -Thomas Edison (1847-1931) Jack Leach wrote: Hi Jack, Thanks for the response, but (to me) it as I understand it - please correct me if I am wrong) Decompile only affects the VBA code, not the database itself. And, as I said in my original post, compact / repair failed to fix the
DataBase splitting of Access database Hi everybody, I have created one mdb file using MS Access 2003. After splitting this, the back end of this file is migrated into sql server (Express 2005) using SSMA for Access. The front end containing tables and forms are in mdb file. Is it possible to Earliest response will be highly appreciated. With regards - - nandini No, it is not possible. An Access database is not an .exe file and cannot, in any way, be made into an .exe
DataBase capturing the size of the mdb file with VBA Is there a way to capture the size of the current mdb file in VBA? That is, the Size that is displayed in the Database Properties window that appears when you right-click on the database window title bar (in Access 2003). Thanks in advance, Paul You could use a function such as: '- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- ' Procedure : GetFileSize ' Author
DataBase What's the best way to open another mdb file using VBA? What code can I use in VBA to open another mdb file? - We're using Access 2003 - Code would reside in each user's C drive in "C: \ Project \ Version_check.mdb" - The file to open would be in the same directory in - In our computers, the access application is located in "C: \ Program Files \ Microsoft Office \ OFFICE11 \ MSACCESS.EXE" I have tried somewhat irritating at times because you may get security related messages when using it. 2) Access's built-in Shell function Actually I am not sure how this works. . . never really anywhere in your project to open the file. ShellEx "C: \ Project \ Version_check.mdb" ' = = = = = = = = = = = = = = = = = = = = = Option Compare Database Option Explicit Private Declare Function apiShellExecute _ Lib "shell32.dll" _ Alias "ShellExecuteA" _ (ByVal