By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,896 Members | 1,997 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,896 IT Pros & Developers. It's quick & easy.

How to force a dialog Box to close without VBA

P: 1
Hello,

I have a big issue. I have program a login screen on my access database but I disabled "Allow editing", so now I'm stuck on the login screen. The Close button and the short menu are also disabled so no way to close it through those ways.
Please help me this project is very important
Thank you
Mar 26 '18 #1
Share this Question
Share on Google+
3 Replies


twinnyfo
Expert Mod 2.5K+
P: 3,284
Hit Alt-Fll

Then in the immediate window type:

Expand|Select|Wrap|Line Numbers
  1. DoCmd.Close acForm, "Your Form Name"
Hope this hepps!
Mar 26 '18 #2

NeoPa
Expert Mod 15k+
P: 31,491
Ctrl-F4 should work for you.

In most cases, it's not a good idea (It's a very bad idea!) to manage users separately for your database. Unless you have a very good reason not to, use the account the user logged onto the computer or domain with to determine their rights.
Mar 26 '18 #3

twinnyfo
Expert Mod 2.5K+
P: 3,284
This article may provide some insights as to what NeoPa is talking about. Not a perfect solution for everyone, but might get you on a path to something more usable.
Mar 26 '18 #4

Post your reply

Sign in to post your reply or Sign up for a free account.