Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Business Applications Business Applications
Search Search
Search for:
Tech Support Guy > > >

Solved: how to open form without open access window


(!)

OBP's Avatar
OBP OBP is offline OBP is a Trusted Advisor with special permissions.
Computer Specs
Trusted Advisor with 18,520 posts.
 
Join Date: Mar 2005
Location: UK
17-Feb-2012, 08:59 AM #16
You open the VBA editor (Alt + f11) and on the Menu Insert>Module which is basically the same as an event procedure but it cna be "called" from anywhere in the database.
Jayabhadra's Avatar
Jayabhadra Jayabhadra is offline
Member with 52 posts.
THREAD STARTER
 
Join Date: Feb 2012
Experience: Familiar
17-Feb-2012, 09:41 AM #17
I'm trying to make the module in the last file you posted. Is this correct:
Option Compare Database
Public Sub AutoExec()
fAccessWindow ("Minimize", False, False)
End Sub

By the way, how to turn the file back to normal? Because it even dont have any "save as" option..

Thanks
OBP's Avatar
OBP OBP is offline OBP is a Trusted Advisor with special permissions.
Computer Specs
Trusted Advisor with 18,520 posts.
 
Join Date: Mar 2005
Location: UK
17-Feb-2012, 09:49 AM #18
You use
fAccessWindow ("Show", False, False)
to set it back to normal.
Jayabhadra's Avatar
Jayabhadra Jayabhadra is offline
Member with 52 posts.
THREAD STARTER
 
Join Date: Feb 2012
Experience: Familiar
17-Feb-2012, 09:51 AM #19
Is this the right content of the module:
Option Compare Database
Public Sub AutoExec()
fAccessWindow ("Minimize", False, False)
End Sub

Cause it says syntax error..

I mean to turn the file you posted back to normal, how did you do it?
OBP's Avatar
OBP OBP is offline OBP is a Trusted Advisor with special permissions.
Computer Specs
Trusted Advisor with 18,520 posts.
 
Join Date: Mar 2005
Location: UK
17-Feb-2012, 10:05 AM #20
Sorry there is more to it than that. I will test it and get back to you.
OBP's Avatar
OBP OBP is offline OBP is a Trusted Advisor with special permissions.
Computer Specs
Trusted Advisor with 18,520 posts.
 
Join Date: Mar 2005
Location: UK
17-Feb-2012, 10:31 AM #21
Ok, I had the order mixed up, you need 2 macros, one to turn off the window and one to turn it back on.
They use 2 extensive VBA Functions in one module called Module1.
So I have created a form called Form1 in pop up mode. In the OnOpen event I have used the Macro Hide and in the OnClose event I have used the Show macro.
Opne the form and Access disappears, close it and Access re-appears.
Attached Files
File Type: zip send v 0.0.zip (34.5 KB, 311 views)
__________________
OBP
I do not give up easily
Jayabhadra's Avatar
Jayabhadra Jayabhadra is offline
Member with 52 posts.
THREAD STARTER
 
Join Date: Feb 2012
Experience: Familiar
17-Feb-2012, 10:54 AM #22
perfect OBP, this is just what I need. Now there's just this three question I have for this issue:
1. I get this type of thing every time I open office file with macro in it (see attachment), so I need to click the Option>Enable Macro. Is there anything I can do to make the macro run automatically every time I open the file?
2. To make everything close when I click "Close Form", can I just delete the "show" macro?
3. If I want my other database to be like that, I need to make exactly the same code in module1 and two macro. Is this right? Or I just need to create the two macro without module1?

So many thanks!!
Jayabhadra's Avatar
Jayabhadra Jayabhadra is offline
Member with 52 posts.
THREAD STARTER
 
Join Date: Feb 2012
Experience: Familiar
17-Feb-2012, 10:55 AM #23
Sorry forget to attach
Attached Thumbnails
Solved: how to open form without open access window-untitled.png  
OBP's Avatar
OBP OBP is offline OBP is a Trusted Advisor with special permissions.
Computer Specs
Trusted Advisor with 18,520 posts.
 
Join Date: Mar 2005
Location: UK
17-Feb-2012, 11:01 AM #24
You are correct both macros and the Module, or at least the code from that module in one of your own.

I think that message is a Security Level Issue, you may hvae to lower. See this PDF document.
http://www.cworks.com.my/FAQ/Enablin...ess%202007.pdf
Jayabhadra's Avatar
Jayabhadra Jayabhadra is offline
Member with 52 posts.
THREAD STARTER
 
Join Date: Feb 2012
Experience: Familiar
17-Feb-2012, 11:10 AM #25
Is the VBA in Form module necessary to be copied too?
Jayabhadra's Avatar
Jayabhadra Jayabhadra is offline
Member with 52 posts.
THREAD STARTER
 
Join Date: Feb 2012
Experience: Familiar
17-Feb-2012, 11:16 AM #26
I have erased the "Show" macro. The pop up form window is closed but access window is still open in task bar. How to completely close everything? which part of the code should I delete?
Attached Files
File Type: zip send v 0.2me.zip (107.6 KB, 106 views)
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


Tags
access, access window, form

(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑