I already remove the close button on my forms. Is there a way that I will
also remove the close button, or the whole control of the main MS access
program?
Mark
--
Paul Overway
Logico Solutions, LLC
www.logico-solutions.com
"M P" <ma...@textguru.ph> wrote in message
news:#k35fIRa...@TK2MSFTNGP09.phx.gbl...
But like Paul wrote, you can render the Close button of the Access
application window ineffective.
--
HTH
Van T. Dinh
MVP (Access)
"M P" <ma...@textguru.ph> wrote in message
news:#k35fIRa...@TK2MSFTNGP09.phx.gbl...
The "trick" is to decide what your goal is and see how you can work
positively toward it.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
"M P" <ma...@textguru.ph> wrote in message
news:#k35fIRa...@TK2MSFTNGP09.phx.gbl...
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003
(david)
"M P" <ma...@textguru.ph> wrote in message
news:%23k35fIR...@TK2MSFTNGP09.phx.gbl...
THanks for the reply. The thing is this, I want my user to use the logoff
button that I made on my form instead of clicking the X button (close
button) of the Main MS Access Window. How can I do this? Please Help!
Mark
"Paul Overway" <pa...@no-spam-logico-solutions.com> wrote in message
news:OpfCoZRa...@TK2MSFTNGP12.phx.gbl...
--
Paul Overway
Logico Solutions, LLC
www.logico-solutions.com
"M P" <ma...@textguru.ph> wrote in message
news:eIVHnfta...@TK2MSFTNGP10.phx.gbl...
I forgot to tell you that I am new to access and VB programming.
"Paul Overway" <pa...@no-spam-logico-solutions.com> wrote in message
news:#Gv1Vywa...@TK2MSFTNGP10.phx.gbl...
>Sorry but I need help. Can you give me a sample code so that I may use it as
>a pattern.
Create a Form named frmStartup. It should be unbound (not based on any
table), and its Visible property should be False - you just want the
form hanging around in the background, not visible.
In its Close event put code like
Public glbOKToClose as Boolean
Private Sub Form_Close(Cancel as Integer)
If glbOKToClose = False Then
"Please close the database using the Exit button", vbOKOnly
Cancel = True
End If
End Sub
Then, in the code to your Exit button, set glbOKToClose to True.
John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
I think you meant the Unload Event (which is cancellable) and not the Close
Event.
--
HTH
Van T. Dinh
MVP (Access)
"John Vinson" <jvinson@STOP_SPAM.WysardOfInfo.com> wrote in message
news:v79nkvkithe2s2g29...@4ax.com...
>John
>
>I think you meant the Unload Event (which is cancellable) and not the Close
>Event.
Thanks Van... quite correct!
--
Regards
Ian Baker
Jackaroo Developments Pty Ltd
Download Jackaroo (an IT Help Desk application) at Web:
http://jackaroo.net.au
"M P" <ma...@textguru.ph> wrote in message
news:%23k35fIR...@TK2MSFTNGP09.phx.gbl...
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.509 / Virus Database: 306 - Release Date: 12/08/2003
testing only
"John Vinson" <jvinson@STOP_SPAM.WysardOfInfo.com> wrote in message
news:8htnkvonkge5imags...@4ax.com...