Ask a Question related to Microsoft Access, Design and Development.
-
Dirk Goldgar #1
Re: Quit Access
"PBrown" <paul.brown@nissan-usa.com> wrote in message
news:02d601c34b0b$7483bd20$a401280a@phx.gblPossibly because you've misspelled the name of your variable isgm in> Why won't this quit and exit out of Access:
> Private Sub Form_Close()
> Dim isgm As String
> isgm = InputBox("Restricted Area: Enter Password")
> If UCase(isgm) = "ADMIN" Then
> DoCmd.OpenForm "Editing Switchboard", , , , , , ""
> ElseIf UCase(ismg) = "CLOSE" Then
> DoCmd.Quit
> Application.Quit
> End If
> End Sub
this line:
You should set the VB editor option to require explicit declaration of> ElseIf UCase(ismg) = "CLOSE" Then
all variables -- then you'd get a compile error on that statement.
Incidentally, I don't see any reason to have *both* DoCmd.Quit and
Application.Quit in your code.
--
Dirk Goldgar, MS Access MVP
[url]www.datagnostics.com[/url]
(please reply to the newsgroup)
Dirk Goldgar Guest
-
Slow to quit, force quit sometimes necessary
Has anyone else experienced general slowness in starting and quitting the application? My users are on Acrobat Pro 7.08, using OS 10.4.6 on Dual... -
Cannot Force Quit
Peter, Steve's problem is that his internal HD is full. I don't think removing applications from it is a wise solution for recovering free space. ... -
do you reallly want to quit?
What I want is a confirm box that displays when the user closes a browser window. It asks the infamous question "do you really want to quit" and if... -
quit
How can i make my presentation close if i press on a sprite that says quit..... any help... thanks also, i posted about sound, and ive checked... -
access won't quit after form
when done using this form, quitting the application only minimizes access. it does not close out. any help?



Reply With Quote

