I am using Access 97. I would like to be able to pause between forms.
For example, I have 2 reminders I would like displayed separately, one
at a time. Here is part of the code I am using.
If Not rstReminders.EO F Then
rstReminders.Mo veFirst
While Not rstReminders.EO F
strReminder = rstReminders!Re minder
strEventCaption = rstReminders!Ev entCaption
DoCmd.OpenForm "frmMessage "
Forms!frmMessag e.Caption = strEventCaption
Forms!frmMessag e!txtReminder = strReminder
rstReminders.Mo veNext
Wend
End If
Making the form a Dialog form by adding acDialog does not work because
then I cannot set the Message Caption or the reminder.
I also tried adding DoEvents and Wait (found on Microsoft's site) to no
avail. I know that I can insert a MsgBox statement to halt the code
until the user clicks on okay but I want it to halt and have the user
click on the OK button of the frmMessage.
Does anyone have any suggestions? Thank you,
Deborah 2 1318
Deborah V. Gardner wrote: I am using Access 97. I would like to be able to pause between forms.
For example, I have 2 reminders I would like displayed separately, one at a time. Here is part of the code I am using.
If Not rstReminders.EO F Then rstReminders.Mo veFirst While Not rstReminders.EO F strReminder = rstReminders!Re minder strEventCaption = rstReminders!Ev entCaption
DoCmd.OpenForm "frmMessage " Forms!frmMessag e.Caption = strEventCaption Forms!frmMessag e!txtReminder = strReminder
rstReminders.Mo veNext Wend End If
Making the form a Dialog form by adding acDialog does not work because then I cannot set the Message Caption or the reminder.
I also tried adding DoEvents and Wait (found on Microsoft's site) to no avail. I know that I can insert a MsgBox statement to halt the code until the user clicks on okay but I want it to halt and have the user click on the OK button of the frmMessage.
Does anyone have any suggestions? Thank you, Deborah
In the form that runs this code, change it to see if there are are
records in rstReminder. If there are,
open the frmMessage form and have it loop thru the reminder file
displaying the reminders. Use a
click button to have the loop go to the next record. When completed,
close the frmMessage form.
Ron
--
Ronald W. Roberts
Roberts Communication rw************* ******@robcom.c om
To reply remove "_at_robcom_dot _com"
On Sun, 22 Feb 2004 04:44:15 GMT, Deborah V. Gardner wrote: I am using Access 97. I would like to be able to pause between forms.
For example, I have 2 reminders I would like displayed separately, one at a time. Here is part of the code I am using.
If Not rstReminders.EO F Then rstReminders.Mo veFirst While Not rstReminders.EO F strReminder = rstReminders!Re minder strEventCaption = rstReminders!Ev entCaption
DoCmd.OpenForm "frmMessage " Forms!frmMessag e.Caption = strEventCaption Forms!frmMessag e!txtReminder = strReminder
rstReminders.Mo veNext Wend End If
Making the form a Dialog form by adding acDialog does not work because then I cannot set the Message Caption or the reminder.
I also tried adding DoEvents and Wait (found on Microsoft's site) to no avail. I know that I can insert a MsgBox statement to halt the code until the user clicks on okay but I want it to halt and have the user click on the OK button of the frmMessage.
Does anyone have any suggestions? Thank you, Deborah
You can use acDialog to open the form, but you'll need to pass your caption
and message before you open the form. A quick and simple way is to delcare
strReminder and strEventCaption as public to the project, then just open
the form as acDialog. In the Open event of the message form, use those
public variables to set the caption and message.
A better, but slighlty more complicated way is to pass strReminder and
strEventCaption as the OpenArgs setting of the DoCmd.OpenForm. You'll need
to format them in a way that you can use InStr() to extract them reliably
--
Mike Storr www.veraccess.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dr. Know |
last post by:
I am working on an ASP page that writes to several databases, ranging
from MDBs to x-base.
One of the tasks involves using an existing highest value from the DB
and incrementing it before inserting a new record.
I am using Application.Lock and .Unlock together with an application
variable to negotiate access to the DB routine to one session (user)
at a time. This is to ensure that the ID numbers are cleanly
incremented, and that no...
|
by: Lloyd Sheen |
last post by:
I have the following situation:
Need a user resizable user control. After much trying with user control I
came across the idea of hosting the controls in a form marked as not
TopLevel = false. This work fine for most cases, allowing the user to
resize the form (and controls within the form.
The forms them selves are create dynamically when the user drags a node from
a listview to a panel (contained in a Usercontrol which is hosted by...
|
by: Charles Law |
last post by:
My first thought was to call
WorkerThread.Suspend
but the help cautions against this (for good reason) because the caller has
no control over where the thread actually stops, and it might have a lock
pending, for example.
I want to be able to stop a thread temporarily, and then optionally resume
it or stop it for good.
|
by: RSH |
last post by:
I am writing a VB .Net App (Not ASP .Net) where I'm having an issue creating
a cancel button...
I have a situation where I have a loop that is initiated when the user
clicks on a Run button. I would like to have a Cancel button that when the
user clicks it a message button a messagebox will be displayed asking if
they would like to cancel or not...if they select yes I would like to break
out of the loop but not quit the application.
|
by: BLUE |
last post by:
I would like to pause an application while the GUI display a Label saying
"Logging in...".
System.Timers
System.Windows.Forms.Timer
System.Threading.Timer
System.Threading ==Thread.Sleep
Which one?
In the last case Sleep must be applied to what(Application, this or what)?
| |
by: Grayzag |
last post by:
Hi there,
As part of my Software course, i have to create a game. Since I originally started out with python, I was used to it being really easy to create a main loop to control the game with a simple while statement, pausing where input is needed from the user.
Now that I have moved on to VB, I can seem to find a way to pause the while statements until the user does something (e.g. clicks a button). When i start my app, if just throws...
|
by: greg |
last post by:
Hi,
Can anyone help me with the following issue:
How can I pause the execution of a program until a given file is
created (by another process) in a specified directory?
Any ideas would be highly appreciated.
Thanks!
|
by: Lucress Carol |
last post by:
Hi everyone,
I'm having troubles with pausing and continuing MFC Thread.For test
purposes I've created in my MFC Dialog application a progress Bar
Control, a Start Button and a Stop Button.The idea is to start the
progress Bar Control by clicking on the Start Button and I would like
to pause (Stop Button) the process at anytime and continue it when I
click on the Start Button.I had a look at the following homepage:...
|
by: thesti |
last post by:
hello,
i have some jbuttons in my frame.
and i have a recursive method, which will check a certain condition and if satisfied, will move one of the jbuttons location to somewhere else in the frame and then remove the jbutton from the frame, then the process is repeated.
(since i use null layout for my frame, i can call the setBounds method)
the problem is, the method will keep running without pausing, so i couldn't see which...
|
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...
|
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...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
| |