473,785 Members | 2,466 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Event as form is loading

Is there an event that triggers as a form is loading? I want to
display a "loading form" event as the form is loading since it tends to
take 20 second or so to open.

TIA
Brian

Jan 4 '07 #1
4 1716
"BerkshireG uy" <be************ *************@y ahoo.comwrote in message
news:11******** *************@s 80g2000cwa.goog legroups.com...
Is there an event that triggers as a form is loading? I want to
display a "loading form" event as the form is loading since it tends to
take 20 second or so to open.

TIA
Brian
I would suggest trying to find out why your form is taking so long. One
thing to try is a persistent connection to your back end file (you do have
it split, right?). You should also have a local copy of the front end file
on each user's PC which should also help speed things up. To quote Allen
Browne from another thread on this topic:

"Hopefully you have a split database, and you are working on a local (C:
drive) copy of the front end, so we are not talking about network lag on
design.

I strongly suggest you walk through each item in Tony Toews' FAQ. It is
definately worth the learning experience, and will probably identify the
cause of your issue. Also worth a compact, decompile, compact sequence.

If the slowness of the network itself is a contributing factor, you will
notice a significant delay when you open the Relationships window (Tools
menu.) This assumes there are several related tables in the back end, of
course. But that still should not make the form slow to work with once you
have it open in design view."

HTH - Keith.
www.keithwilby.com
Jan 4 '07 #2
you need to find out why it takes 20 secs...
is your form bound to fields in a table ?
if so,
how many records in the table ?
at startup, is the form's recordset displaying all the records or do
you have a 'search'
button to select just one record to display ?
BerkshireGuy wrote:
Is there an event that triggers as a form is loading? I want to
display a "loading form" event as the form is loading since it tends to
take 20 second or so to open.

TIA
Brian
Jan 4 '07 #3
Thanks to you both for the responses.

The slowness is due to the form calculating a few values based on some
link tables that are in desperate need of optimizing. Unfortnately,
its not a system that I have access to optimize.

Thanks
Brian

le*********@nat pro.com wrote:
you need to find out why it takes 20 secs...
is your form bound to fields in a table ?
if so,
how many records in the table ?
at startup, is the form's recordset displaying all the records or do
you have a 'search'
button to select just one record to display ?
BerkshireGuy wrote:
Is there an event that triggers as a form is loading? I want to
display a "loading form" event as the form is loading since it tends to
take 20 second or so to open.

TIA
Brian
Jan 5 '07 #4

BerkshireGuy wrote:
Thanks to you both for the responses.

The slowness is due to the form calculating a few values based on some
link tables that are in desperate need of optimizing. Unfortnately,
its not a system that I have access to optimize.
Consider using the form's Open or Load events. The major difference
between the two is that Open can be canceled (if for example there are
no records to display or some other arbitrary condition is met) and
Load cannot. If you're using Access 2003 look at online help for
'order of events for database objects' and then click on 'order of
events for forms and subforms' for more information about what happens
when a form opens.

Bruce

Jan 5 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3537
by: Krisa | last post by:
Hello all, I just discovered something (stop me if you've heard this before....) that was causing me a significant performance hit when opening a form with subforms. To speed up loading the form, I set the rowsources of its, and its subforms', combo boxes in the "Enter" events of the combo boxes. That's the standard trick for not loading the rowsource unless/until the user actually needs the combo box. For example:
0
2462
by: dlieu | last post by:
I've found an odd situation in where the Load event of the active form fires (after the Unload event) when Access is closed. I am able to reproduce this situation in Access 2002 SP3 and Access 2003 on computers running WinXP. This does not appear to happen in Access 2000 on a computer with Win2000. This only seems to happen if there is a hidden form also loaded and, so far, I'm only able to reproduce this if the forms are loaded through...
1
4120
by: Dan | last post by:
All, I have a form with a check box on it for which I have implemented a CheckedChange event. The form is the front end of a complex data entry system. When I load the form I check for previously entered data and load that into the form. If a certain value exists then I set the CheckBox Checked property to true. The problem that I have is that, when the form Loads the CheckedChange event fires and that code executes. I don't want that...
1
2654
by: vbmark | last post by:
Is there a final event that fires when the application is done loading and the form is displayed? Thanks! -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- http://www.vbmark.com Only the best freeware. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
7
3262
by: Tim T | last post by:
Hi, I have the need to use dynamically loaded user controls in a webform page. I have the controls loading dynamically, and that part works fine. this is the code used in a webform to dynamically load one of several controls: private void btnCategory_Click(object sender, System.EventArgs e) { Control myControl = LoadControl(DropDownList1.SelectedItem.Text + ".ascx"); PlaceHolder1.Controls.Add(myControl);
6
3381
by: Steve Booth | last post by:
I have a web form with a button and a placeholder, the button adds a user control to the placeholder (and removes any existing controls). The user control contains a single button. I have done all the usual stuff of recreating the usercontrol in the Page Init event. The 'failure' sequence is as follows: - select web form button to display the user control - select user control button, event fires - select web form button to display...
7
1510
by: Jeff Casbeer | last post by:
New to VB.. What is the VB syntax for posting a Windows event? For example, to have an event fire AFTER a form loads, I'd add a posted call to a "post_load" event, from "load". What is the VB syntax for that deferred call? Raiseevent seems to be synchronous, as does just calling the handler subroutine. Also, how do I defer processing to allow windows to process incomplete events, eg., painting Thanks - Jeff
2
6157
by: Mattbooty | last post by:
Hello, Not sure if anyone else has seen this bug, but I have a form where the entire form is covered with a picturebox. The picturebox has a mouseup event. I also have an open file dialog for loading images into the picturebox. If you double click the file you want to open in the open file dialog, it somehow interperets one of the clicks as a mouseup on the picturebox and fires the mouseup event for the picturebox. How can I get...
6
10822
by: tbrown | last post by:
I have a combobox with items like this: {one,two,three}. The selected index is 0, so "one" appears in the combobox text. When the user drops down the list, and selects "two", for example, I modify the Items collection to be {two,one,three} and now want "two" to appear in the combobox text. However, the combobox text is now blank. the is apparently somehow the result of having changed the combobox.Items collection. If, trying to fix...
0
9647
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10356
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10161
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8986
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7506
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5390
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4058
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2890
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.