473,395 Members | 1,571 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.

Showing Form while process runs

RLN

Re: Access 2003

I have a process that sends out emails to addresses (internally in our
company). Form1 has all the main functionality/data, etc on it. When
the user clicks "Send Emails" on Form1, I change my cursor to an
hourglass when it starts and change it back to normal when finished. I
would like to be able to show a 2nd form (Form2) very small and simple
that says, "Sending emails out....please wait".

This little pop up form is just a status indicator nothing else. Is
there a special way to code this so that when Form2 pops up, all focus
goes back to Form1?

thanks...

*** Sent via Developersdex http://www.developersdex.com ***
Aug 15 '08 #1
3 2478
RLN wrote:
Re: Access 2003

I have a process that sends out emails to addresses (internally in our
company). Form1 has all the main functionality/data, etc on it. When
the user clicks "Send Emails" on Form1, I change my cursor to an
hourglass when it starts and change it back to normal when finished. I
would like to be able to show a 2nd form (Form2) very small and simple
that says, "Sending emails out....please wait".

This little pop up form is just a status indicator nothing else. Is
there a special way to code this so that when Form2 pops up, all focus
goes back to Form1?

thanks...

*** Sent via Developersdex http://www.developersdex.com ***
If I enter
Docmd.OpenForm "test"
msgbox Forms!Test!ID
msgbox Forms!Test!CustomerName
msgbox Forms!Test!CustomerAddr
Docmd.Close acForm, "Test"
it will execute the lines following the OpenForm line and then exit the
sub. That is if you haven't made the form Test modal.

Aug 15 '08 #2
On Fri, 15 Aug 2008 11:43:46 -0700, Salad <oi*@vinegar.comwrote:
>RLN wrote:
>Re: Access 2003

I have a process that sends out emails to addresses (internally in our
company). Form1 has all the main functionality/data, etc on it. When
the user clicks "Send Emails" on Form1, I change my cursor to an
hourglass when it starts and change it back to normal when finished. I
would like to be able to show a 2nd form (Form2) very small and simple
that says, "Sending emails out....please wait".

This little pop up form is just a status indicator nothing else. Is
there a special way to code this so that when Form2 pops up, all focus
goes back to Form1?

thanks...

*** Sent via Developersdex http://www.developersdex.com ***

If I enter
Docmd.OpenForm "test"
msgbox Forms!Test!ID
msgbox Forms!Test!CustomerName
msgbox Forms!Test!CustomerAddr
Docmd.Close acForm, "Test"
it will execute the lines following the OpenForm line and then exit the
sub. That is if you haven't made the form Test modal.
could you have a model form and display info of each email as it
cycles thru to show that it was doing something without a msgbox?
for each one display this info in a txtbox on the form.
I assume that there would be a way to know when it was done...have a
label that says done and and exit form button...enabled/visible when
thru.

Aug 15 '08 #3
sparks wrote:
On Fri, 15 Aug 2008 11:43:46 -0700, Salad <oi*@vinegar.comwrote:

>>RLN wrote:
>>>Re: Access 2003

I have a process that sends out emails to addresses (internally in our
company). Form1 has all the main functionality/data, etc on it. When
the user clicks "Send Emails" on Form1, I change my cursor to an
hourglass when it starts and change it back to normal when finished. I
would like to be able to show a 2nd form (Form2) very small and simple
that says, "Sending emails out....please wait".

This little pop up form is just a status indicator nothing else. Is
there a special way to code this so that when Form2 pops up, all focus
goes back to Form1?

thanks...

*** Sent via Developersdex http://www.developersdex.com ***

If I enter
Docmd.OpenForm "test"
msgbox Forms!Test!ID
msgbox Forms!Test!CustomerName
msgbox Forms!Test!CustomerAddr
Docmd.Close acForm, "Test"
it will execute the lines following the OpenForm line and then exit the
sub. That is if you haven't made the form Test modal.


could you have a model form and display info of each email as it
cycles thru to show that it was doing something without a msgbox?
Yes. If you executed the code within the modal form.
for each one display this info in a txtbox on the form.
I assume that there would be a way to know when it was done...have a
label that says done and and exit form button...enabled/visible when
thru.
Code doesn't execute if you open the form modal. Try this out (change
form name to match yours)

Docmd.OpenForm "YourFormName",,,,,acDialog
msgbox "Here I is"

Then try this
Docmd.OpenForm "YourFormName"
msgbox "Here I is"
Aug 15 '08 #4

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

Similar topics

3
by: Zamil | last post by:
Hello all, I am trying to read in all the output from netstat.exe into my program. While I have been successfull in doing so, I have some issues that I cannot solve. I don't want the black...
8
by: Raed Sawalha | last post by:
I have form with progress bar ,when application begin processing and progress bar moving if I minimized the form and try to restore it ,it is not showing until the processing completed ,how can I...
3
by: Dubya | last post by:
Hello Everyone, I have this little app, that I would like to configure two modes of operation by using command line arguments. If the app is started with no arguments, the Main UserForm shows...
3
by: steve | last post by:
Hi All I need help on how to load a form in the background so the load event runs (only once) then I can pass data and call showdialog I have code in the forms load event which populates...
5
by: Miro | last post by:
I will try my best to ask this question correctly. I think in the end the code will make more sence of what I am trying to accomplish. I am just not sure of what to search for on the net. I...
6
by: ljungers | last post by:
Hi to all and hope someone may have an answer for me. I have a Form named Cust_lukup_Form that has 3 text boxes and a click button that uses a OnClick to call Cust_lukup_Macro that runs an...
13
by: Edwin Smith | last post by:
I have a form which displays a DataGridView table generated with the VS2005 tools. The database is a Pervasive v.9 with an ODBC driver. The DataGridView works great except when I'm done and I...
3
by: Torben Laursen | last post by:
I have a COM shared add-in written in C# that I use in Excel. One of the thinks that the user can do is to open some winforms. The problem that I have is that the first time the user opens a...
2
pablojoshua
by: pablojoshua | last post by:
Ok I have the current processes showing, but it shows the path of the process too. I just want the list to show the .exe or .dll name with the suffix. This is what I have so far (from microsoft) ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
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
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,...

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.