473,386 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Improper Closing

64
Good morning.

I am using Access 2007 with all users running runtime. I created a login table that functions very well by adding logins and deleting logins as people log in and out of the application. However, many users, inspite of my many emails, insist on just closing out the program by "X" the whole window rather than using the appropriate "Quit" buttons on the form. When the user just closes the whole program, the logon data is not deleted as it is when using the proper "quit" buttons.

Is there a method to either:
1. Force the user to use the apprpriate buttons to exit the program or
2. Programatically run my "macDeleteLoggedOn" macro when somebody just clicks the "X" in the upper right hand corner.

Thanks

-Tomb
Mar 30 '09 #1
3 1457
puppydogbuddy
1,923 Expert 1GB
If you are just talking about the control box X on the Access form, you can set the control box property to No on the form's property sheet. If you are talking the control box x in the application window that appears the upper right of most windows applications, there are several methods available. The method I think is one of the more complete is available as a demo download at this link:
http://www.access-programmers.co.uk/...ad.php?t=98554
Mar 30 '09 #3
ChipR
1,287 Expert 1GB
When the application is closed using the X, your open forms still run the Form_Unload(Cancel As Integer) event. You can put your code there, if you have a form that should always be open, like a menu.
Mar 30 '09 #4

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

Similar topics

10
by: sp0 | last post by:
Is there a reason why to make mix numbers improper when adding? It seems when subtracting and adding, adding a subtracting the whole numbers and fraction parts should be sufficient? what'ch think
16
by: jose_luis_fdez_diaz_news | last post by:
Hi, If I don't include <libgen.h> I get then warnig below in regcmp call: warning: improper pointer/integer combination: op "=" but if I include it the warning is not shown, but them program...
5
by: Jeff | last post by:
I am trying to crete a method that will convert an improper fraction to a mixed number... I am not sure how about how to acomplish this. I know I can get the remainder with the modulus operator...
10
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
0
by: Geisler, Jim | last post by:
after an improper shutdown (power failure) the postgres service cannot be restarted. simply restoring the postmaster.pid does not allow the postgres service to start. also, is there somekind of...
4
by: david.w.anderson1 | last post by:
This is a homework assignment. The code works but does not "catch" all the improper input. The requirement is to be able to accept one input currency, which is error checked as a valid entry, and...
7
by: Kesavan | last post by:
Is there any way to run a function or a code-block whenever the client- server communication breaks off. (ie power-off, browser-crash...) Why I need this is, I want to update a login-table to...
2
by: jthep | last post by:
I'm creating an addrecord and a delete record for a linked list below: int addRecord(struct record **start, char name, char address, int yearofbirth, char telno) { struct record *temp; ...
1
by: Charming12 | last post by:
Hi All, I am using System.Runtime.InteropServices; to marshal a structure using Marshal.structureToPtr(). But to get the size of structure when i get Marshal.sizeOf(), it gives me improper sizes....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.