473,395 Members | 1,393 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

? about opening a form while navigating tab control

I''m having problems getting a form to open while going from one tab
to another. I have a tab control: one tab for counties and one tab
for cities. Both tabs have multi-select listboxes. If some, but not
all, counties are chosen, then all cities in the selected counties are
automatically highlighted when the user exits the county tab and goes
to the city tab. So when the user goes to the city tab, they see all
cities in the listbox but only those in the selected counties are
highlighted. This works pretty slick but when the user goes to the
city tab, there is a lag time while the city listbox gets prepared and
this lag time could be mistaken for the database being hung up. I'd
like to display a message talling the user to wait until the city
listbox is populated.

I created a small form that just says "Wait while city list
generates..." and open it when the city listbox is being prepared.
But it doesn't appear to open even though debug confirms that the code
is being run. Here's what I have so far:

DoCmd.OpenForm "frmWait"
<populate city listbox coding>
DoCmd.Close acForm, "frmWait"

This coding is in the exit event of the county listbox. It fires when
the user clicks on the city tab.

Should this form be opened in another event? It didn't make sense to
me to put the "populate city listbox coding" anywhere else but in the
exit event.

Thanks for any help or advice.

Aug 2 '07 #1
3 2071
On Thu, 02 Aug 2007 06:53:40 -0700, EManning
<ma**********@hotmail.comwrote:

In that form's Form_Load event write:
DoEvents

That will help it get painted.

Personally I would only show an hourglass cursor and leave it at that.
In some cases you can also use the Access status bar to show progress;
check out SysCmd in the help file.

-Tom.

>I''m having problems getting a form to open while going from one tab
to another. I have a tab control: one tab for counties and one tab
for cities. Both tabs have multi-select listboxes. If some, but not
all, counties are chosen, then all cities in the selected counties are
automatically highlighted when the user exits the county tab and goes
to the city tab. So when the user goes to the city tab, they see all
cities in the listbox but only those in the selected counties are
highlighted. This works pretty slick but when the user goes to the
city tab, there is a lag time while the city listbox gets prepared and
this lag time could be mistaken for the database being hung up. I'd
like to display a message talling the user to wait until the city
listbox is populated.

I created a small form that just says "Wait while city list
generates..." and open it when the city listbox is being prepared.
But it doesn't appear to open even though debug confirms that the code
is being run. Here's what I have so far:

DoCmd.OpenForm "frmWait"
<populate city listbox coding>
DoCmd.Close acForm, "frmWait"

This coding is in the exit event of the county listbox. It fires when
the user clicks on the city tab.

Should this form be opened in another event? It didn't make sense to
me to put the "populate city listbox coding" anywhere else but in the
exit event.

Thanks for any help or advice.
Aug 2 '07 #2
On Aug 2, 7:19 am, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
On Thu, 02 Aug 2007 06:53:40 -0700, EManning

<manning_n...@hotmail.comwrote:

In that form's Form_Load event write:
DoEvents

That will help it get painted.

Personally I would only show an hourglass cursor and leave it at that.
In some cases you can also use the Access status bar to show progress;
check out SysCmd in the help file.

-Tom.
I''m having problems getting a form to open while going from one tab
to another. I have a tab control: one tab for counties and one tab
for cities. Both tabs have multi-select listboxes. If some, but not
all, counties are chosen, then all cities in the selected counties are
automatically highlighted when the user exits the county tab and goes
to the city tab. So when the user goes to the city tab, they see all
cities in the listbox but only those in the selected counties are
highlighted. This works pretty slick but when the user goes to the
city tab, there is a lag time while the city listbox gets prepared and
this lag time could be mistaken for the database being hung up. I'd
like to display a message talling the user to wait until the city
listbox is populated.
I created a small form that just says "Wait while city list
generates..." and open it when the city listbox is being prepared.
But it doesn't appear to open even though debug confirms that the code
is being run. Here's what I have so far:
DoCmd.OpenForm "frmWait"
<populate city listbox coding>
DoCmd.Close acForm, "frmWait"
This coding is in the exit event of the county listbox. It fires when
the user clicks on the city tab.
Should this form be opened in another event? It didn't make sense to
me to put the "populate city listbox coding" anywhere else but in the
exit event.
Thanks for any help or advice.- Hide quoted text -

- Show quoted text -
Is it possible the form is opening, but is behind another window?

Just a thought...

Aug 2 '07 #3
On Aug 2, 11:39 am, Jana <Bauer.J...@gmail.comwrote:
On Aug 2, 7:19 am, Tom van Stiphout <no.spam.tom7...@cox.netwrote:


On Thu, 02 Aug 2007 06:53:40 -0700, EManning
<manning_n...@hotmail.comwrote:
In that form's Form_Load event write:
DoEvents
That will help it get painted.
Personally I would only show an hourglass cursor and leave it at that.
In some cases you can also use the Access status bar to show progress;
check out SysCmd in the help file.
-Tom.
>I''m having problems getting a form to open while going from one tab
>to another. I have a tab control: one tab for counties and one tab
>for cities. Both tabs have multi-select listboxes. If some, but not
>all, counties are chosen, then all cities in the selected counties are
>automatically highlighted when the user exits the county tab and goes
>to the city tab. So when the user goes to the city tab, they see all
>cities in the listbox but only those in the selected counties are
>highlighted. This works pretty slick but when the user goes to the
>city tab, there is a lag time while the city listbox gets prepared and
>this lag time could be mistaken for the database being hung up. I'd
>like to display a message talling the user to wait until the city
>listbox is populated.
>I created a small form that just says "Wait while city list
>generates..." and open it when the city listbox is being prepared.
>But it doesn't appear to open even though debug confirms that the code
>is being run. Here's what I have so far:
DoCmd.OpenForm "frmWait"
<populate city listbox coding>
DoCmd.Close acForm, "frmWait"
>This coding is in the exit event of the county listbox. It fires when
>the user clicks on the city tab.
>Should this form be opened in another event? It didn't make sense to
>me to put the "populate city listbox coding" anywhere else but in the
>exit event.
>Thanks for any help or advice.- Hide quoted text -
- Show quoted text -

Is it possible the form is opening, but is behind another window?

Just a thought...- Hide quoted text -

- Show quoted text -
I thought that might be the case too. But I don't think so. I'm
going to use Tom's suggestion of the hourglass.

Thanks for your help, Tom and Jana.

Aug 3 '07 #4

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

Similar topics

0
by: Tim ffitch | last post by:
Hi I have a main form with some fields directly on the form and others on a page of a Tab Control. On another page of the Tab Control I have a sub form. In the On Current event of my main form I...
1
by: John M | last post by:
I have a Tab Control on a form which holds all my main data entry forms. It has (at the moment) 7 tabs, most of which have a form with a subform (or 2) on them. Most of the forms involved have some...
3
by: CAD Fiend | last post by:
Hello, Well, after an initial review of my database by my client, they have completely changed their minds about how they want their form. As a result, I'm having to re-think the whole process....
24
by: ej1002 | last post by:
Hi I have developed a Windows Application(C# Windows Form) which will get the IFrame Source of the page it is navigating using Webbrowser Control. Now I want do this in ASP.Net web application(C#...
3
by: MartinR | last post by:
Hi, I'm still new to writing code in vba as I've only been introduced to access three weeks ago. I have written this code below and it executes but does not do what I want it to do. What I want is...
1
by: JohnMOsborn | last post by:
I am designing an Access database that will use tab controls. Normally, you place different sets of fields on each page of the tab control – like Fields1-3 on Page 1, Fields 4-6 on Page 2, etc. In...
1
by: celoftis | last post by:
BACKGROUND: I have some PPT slides that have been converted to HTM (ensuring that the show slide animations while browsing checkbox is checked). The original HTM slides have custom animations to...
8
by: paintedjazz | last post by:
I am using the following javascript to make a popup menu allow the user to navigate to different pages on a website. Yet it is opening windows as if I have <base target="some-name"> defined in the...
1
by: Jim Drexcyia | last post by:
In Access 2003, by simply changing data within a sub form that is place upon a tab control closes the main form when navigating or clicking on to another tab page. Any suggestions?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.