Set focus on dual monitors

  • Thread starter Thread starter Wcs
  • Start date Start date
W

Wcs

I am developing a Access 2007 database that I need 2 users to use at the same
time on a single computer. A touch screen will be used for drivers to check
in when they get to work. A simple touch screen form will be used.
In the office a form will display and manage drivers that are late in
checking in. I never want the focus to remain on the check form. Is this
possible and how? I want to keep focus on the office computer.

Thanks
 
You won't be able to do this using one PC if the drivers will be checking in
AT THE SAME TIME that the other staff will need to use the application. A PC
is designed to be used by one user at a time. While you can certainly have
multiple applications running simultaneously including Access, only one
application can receive user input at a time.

Picture if you will you're working at your keyboard and someone takes the
mouse and clicks around on the screen on different applications. Not going to
work.

If however, the drivers will be checking in at one time and the other people
will be using the PC at a different time, then and only then could you use
one PC.
 
You won't be able to do this using one PC if the drivers will be checking in
AT THE SAME TIME that the other staff will need to use the application. A PC
is designed to be used by one user at a time. While you can certainly have
multiple applications running simultaneously including Access, only one
application can receive user input at a time.

Picture if you will you're working at your keyboard and someone takes the
mouse and clicks around on the screen on different applications. Not going to
work.

If however, the drivers will be checking in at one time and the other people
will be using the PC at a different time, then and only then could you use
one PC.
 
I never want the focus to remain on the check form.

This is easily enough accomplished by using the SetFocus method, probably
run on the AfterUpdate event of the form that logs the driver's check-in
time. When the driver signs in, the form updates the data, and sets the
focus back to whatever the office computer form you want is.

However, this will not solve any problems related to the office computer
loosing focus (which will happen any time the driver check-in form is
activated). There is no way around that.

Also, if the check-in form is activated but for some reason not updated, the
focus will have to manually moved back to the office computer. One
alternative to this would be to run a timer on the form, allowing the driver
a certain amount of time to active the form and complete the check-in
process. Research the GotFocus, LostFocus and Timer events of the form for
more information.

Again, there is no way to keep the office computer from loosing the focus
when the check-in form is actived, unless the forms are ran off separate
computers.

--
Jack Leach
www.tristatemachine.com

- "First, get your information. Then, you can distort it at your leisure."
- Mark Twain
 
Back
Top