Results 1 to 6 of 6
  1. #1
    JeroenMioch's Avatar
    JeroenMioch is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2012
    Location
    Den Haag, Netherlands
    Posts
    368

    Disable cross (x) in taskbar win7

    Greetings fellow programmers !

    My users can log off my system with the cross in the taskbar in Win7.
    Though i have disabled all uses of crosses by module.

    This is annoying because i have build a system that keeps track howmany users are logged in, and who.
    If they (right)click the icon in the taskbar they get the option to "close the window" and thus the user isnt logged out.

    I tried to execute the code (logging off the client) by the OnClose event of the form, but that gives me an error.
    It seems that if you close MS-access this way, the form closes and thus i cannot pass the value to the table wich client to log out.

    Any ideas ?

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    I am not familiar with the "Cross" in the task bar. I seem to remember a mention, somewhere, of disabling the ability to exit Access. Is this the issue? You need to eliminate the ability of a user to close Access?

    You may have to remove the power buttons on the machine and strap the power cord to the wall with lock and key too. At some point, the User needs to be responsible for their job.

  3. #3
    ipisors is offline Access Developer
    Windows XP Access 2007
    Join Date
    Sep 2013
    Posts
    119
    Keep a form open at all times - whether it is hidden or not. (for me I don't even use the hidden form technique, I simply always use a Main Menu (form) in all my databases, all functionality sits on top of that in Tabs).

    Code the Unload event of that form.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by ipisors View Post
    Keep a form open at all times - whether it is hidden or not. (for me I don't even use the hidden form technique, I simply always use a Main Menu (form) in all my databases, all functionality sits on top of that in Tabs).

    Code the Unload event of that form.
    Will that VBA run if you close the main app?

  5. #5
    ipisors is offline Access Developer
    Windows XP Access 2007
    Join Date
    Sep 2013
    Posts
    119
    You won't be able to close the app, if you code cancel=true in the form's Unload event and that code fires.

  6. #6
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Interresting, I don't think I have ever tried anything like that. But I will...

Please reply to this thread with any new information or opinions.

Similar Threads

  1. ORA-01019 error in win7 but not XP
    By kawi6rr in forum Programming
    Replies: 2
    Last Post: 01-07-2014, 01:09 PM
  2. Replies: 5
    Last Post: 06-05-2013, 11:20 AM
  3. Replies: 1
    Last Post: 03-20-2013, 07:04 AM
  4. Accdb file differences running xp or Win7
    By 123seven in forum Access
    Replies: 1
    Last Post: 04-24-2011, 10:45 AM
  5. Taskbar panes
    By pkstormy in forum Code Repository
    Replies: 0
    Last Post: 08-31-2010, 01:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums