allow users to use one form at a time

  • Thread starter Thread starter Danie
  • Start date Start date
D

Danie

I would like to prevent users from opening more than one form at a time. Is
this possible? If yes how do I do it?

Thanks for helping me.
Danie
 
Danie

See your other post for a suggestion.

Please note that this newsgroup is "staffed" by volunteers. If no one
responds right away, that may be because:
* no one knows
* no one is listening
* no one has the time

If your need is urgent, you may need to find paid assistance...

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
you asked this twice.
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".
 
I didn't go looking for your "other post" but I will give you a janky way to
get it done.
If you are using a main form with command buttons to open other forms.

Put a hidden text box on your form and call it something like "OpenF". make
its default value = 0. Then on the click event of each command button add in
a line in the event procedure that says something like:

If me.OpenF = 1 then
exit sub
else
me.OpenF+1
end if

have it do this before it opens the form. this way you can tell it not to
open a form if you already have 1 open. Then on the close event of each form
you can subtract one from the main form, and it will keep track...

Just make sure you aren't closing the main form each time you open a new
one, because it will loose track.

Sorry if this is kind of jumbled, I had 3 minutes till I was off work. Hope
it works out!

Zach
 
Access.Forms.Count is much easier with a class module to keep track of
things offcourse

Pieter
 
Steve said:
Indeed, if your need is urgent, I can help you for a modest fee. I provide
help with Access applications for a reasonable fee. Contact me if your
need is urgent and you need to throw away money.

Steve
(e-mail address removed)


These newsgroups are provided by Microsoft for FREE peer to peer support.
There are many highly qualified individuals who gladly help for free. Stevie
is not one of them, but he is the only one who just does not get the idea of
"FREE" support. He offers questionable results at unreasonable prices. If he
was any good, the "thousands" of people he claims to have helped would be
flooding him with work, but there appears to be a continuous drought and he
needs to constantly grovel for work.

A few gems gleaned from the Word New User newsgroup over the Christmas
holidays to show Stevie's "expertise" in Word.


Dec 17, 2008 7:47 pm

Word 2007 ..........
In older versions of Word you could highlght some text then go to Format -
Change Case and change the case of the hoghloghted text. Is this still
available in Word 2007? Where?
Thanks! Steve


Dec 22, 2008 8:22 pm

I am designing a series of paystubs for a client. I start in landscape and
draw a table then add columns and rows to setup labels and their
corresponding value. This all works fine. After a landscape version is
completed, I next need to design a portrait version. Rather than strating
from scratch, I'd like to be able to cut and paste from the landscape
version and design the portrait version.
Steve


Dec 24, 2008, 1:12 PM

How do you protect the document for filling in forms?
Steve


One of my favourites:
Dec 30, 2008 8:07 PM - a reply to stevie
(The original poster asked how to sort a list and stevie offered to create
the OP an Access database)
Yes, you are right but a database is the correct tool to use not a
spreadsheet.


Not at all. If it's just a simple list then a spreadsheet is perfectly
adequate...




John... Visio MVP
 
My post wasn't an invitation for you to solicit work. Newsgroup etiquette
(the polite rules we agree to follow) precludes soliciting work.

I was pointing out options available to the original poster.

Jeff
 
Steve said:
Write a public function that cycles through the forms collection and
checks each form one at a time to see if it is open. Have the function
return True if a form is open. Call this function before DoCmd.OpenForm in
each subroutine where you want to open a form. If the function returns
True, immediately exit the subroutine.

Steve
(e-mail address removed)
 
Steve said:
Write a public function that cycles through the forms collection and
checks each form one at a time to see if it is open. Have the function
return True if a form is open. Call this function before DoCmd.OpenForm in
each subroutine where you want to open a form. If the function returns
True, immediately exit the subroutine.

Steve
(e-mail address removed)
 
Back
Top