PC Review


Reply
Thread Tools Rate Thread

Disable all form events?

 
 
Paul B
Guest
Posts: n/a
 
      29th Oct 2008
Hi all,

One of my applications is used by several users, mainly through terminal
sessions. One of the drawbacks with this is (sometimes) the slow
response time. This causes the user to click on buttons again after
initial clicking. E.g. from a swichboard form, if the users clicks a
button to open another form, and this form is not opened as quickly as
expected, the user tries again.

This results in opening the form twice, with all corresponding problems
and errors. The same is when closing the form. Using the "close" event,
data is collected, manipulated and stored. If this button is used twice,
again we may get problems and errors.

So my question is: is there an easy way to prevent this? Of course I can
disable a control/button after initial use, but I do not know if this is
the best solution. In the switchboard form, there are about 10 options.
And disabling all these options separately (and afterward enabling
again) is not my preferred solution.

Can I disable all form events with one command, or postpone/ignore any
input during processing?

Thinks in advance for any suggestions.

Paul
 
Reply With Quote
 
 
 
 
Arvin Meyer [MVP]
Guest
Posts: n/a
 
      29th Oct 2008
Your problem is not the code as much as it is the way you are using Access
on the Terminal Server. You need to create a folder for each user so that
when he/she logs into the Terminal Server they are directed to their own
folder each one of which has a copy of the Access front-end. Any other
method will eventually cause corruption. possibly irreparably.

If you still have the same problem, start checking the server RAM and the
network for slow or bad NICs. As a last resort, you can change your code to
disable the button after it is clicked once. Then re-enable it after the
code runs.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


"Paul B" <(E-Mail Removed)> wrote in message
news:4908ab4e$0$27201$(E-Mail Removed)...
> Hi all,
>
> One of my applications is used by several users, mainly through terminal
> sessions. One of the drawbacks with this is (sometimes) the slow response
> time. This causes the user to click on buttons again after initial
> clicking. E.g. from a swichboard form, if the users clicks a button to
> open another form, and this form is not opened as quickly as expected, the
> user tries again.
>
> This results in opening the form twice, with all corresponding problems
> and errors. The same is when closing the form. Using the "close" event,
> data is collected, manipulated and stored. If this button is used twice,
> again we may get problems and errors.
>
> So my question is: is there an easy way to prevent this? Of course I can
> disable a control/button after initial use, but I do not know if this is
> the best solution. In the switchboard form, there are about 10 options.
> And disabling all these options separately (and afterward enabling again)
> is not my preferred solution.
>
> Can I disable all form events with one command, or postpone/ignore any
> input during processing?
>
> Thinks in advance for any suggestions.
>
> Paul



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable Form Events From Being Triggered JGeniti Microsoft Excel Programming 4 14th Oct 2005 07:48 PM
Disable / re-enable form field & events (re-post) =?Utf-8?B?TFJlYmVy?= Microsoft Access Getting Started 2 14th Jan 2005 05:21 PM
how do I disable events for controls on a form? Scott Emick Microsoft VB .NET 7 7th Oct 2004 03:25 PM
how do I disable events for controls on a form? Scott Emick Microsoft Dot NET Framework 1 7th Oct 2004 04:55 AM
Disable Events wiwi Microsoft Excel Programming 3 29th Dec 2003 04:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:57 PM.