473,804 Members | 3,462 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to pop up "Busy Message" while running a process in ms access

20 New Member
Please help on how to show a busy message like "Please wait" or a "analytical animated watch" in ms access when a process in running.
Oct 7 '08 #1
14 23080
youmike
69 New Member
You need to identify the event which starts the process - clicking a control on a form, or whatever. In the VBA code for that event you simply add:

Expand|Select|Wrap|Line Numbers
  1. msgbox("BUSY RUNNING PROCESS")
.

This will cause a small window to appear, which the user can close by clicking on the OK button. You can make the msgbox function more complex. Try searching the VBA Help file for details.
Oct 8 '08 #2
yuvang
20 New Member
We can pop up the msg through msgbox option. but it will pop up with "OK" button and it will go off once the ok button clicked. then only the next line of code will be executed.


My expectation is to pop up that msg without "OK" button option and that msg should be there until the current running process completes, then automatically the msg should go off.

It is nothing but when a query or long process is running in system at the time our cursor symbol will change to "busy" mode. Thats i want as msg in our ms access, nothing else than that.
Oct 17 '08 #3
GazMathias
228 Recognized Expert New Member
Please help on how to show a busy message like "Please wait" or a "analytical animated watch" in ms access when a process in running.
Normal way is:

Expand|Select|Wrap|Line Numbers
  1. Dim statusmsg as Variant
  2.  
  3.     statusmsg = SysCmd(acSysCmdRemoveMeter)
  4.     statusmsg = SysCmd(acSysCmdSetStatus, "Posting invoices to ledgers, please wait.")
This will appear on the status bar at the bottom left of the screen.

Gaz.
Oct 17 '08 #4
yuvang
20 New Member
I have removed the status bar in "StartUp". So if that is like Message will look good........
Oct 17 '08 #5
DonRayner
489 Recognized Expert Contributor
Have whatever process you start set a global variable and open a custom form. Have it unset the variable when the process is done running.

Use the on timer event of the custom form to monitor the status of the global variable and to close the form when it's unset.
Oct 17 '08 #6
yuvang
20 New Member
Can you please provide an example........ ...
Oct 17 '08 #7
DonRayner
489 Recognized Expert Contributor
Can you please provide an example........ ...
Create a standard module and declare a public variable at the top

Expand|Select|Wrap|Line Numbers
  1. Public YourVar as string
  2.  
In your process code put this at the top

Expand|Select|Wrap|Line Numbers
  1. YourVar = "running"
  2. Docmd.openform "YourFormName"
  3.  
And this at the exit point

Expand|Select|Wrap|Line Numbers
  1. YourVar = ""
  2.  
In the forms on timer event put this

Expand|Select|Wrap|Line Numbers
  1. If YourVar = "running" Then
  2.     Exit Sub
  3. Else
  4.     Docmd.close
  5. End If
  6.  
Oct 17 '08 #8
yuvang
20 New Member
Hi i have done that but still that is not working to me....


Let me explain what i have done...

i kept the below line

Expand|Select|Wrap|Line Numbers
  1. Public YourVar As String
in a module


then the



Expand|Select|Wrap|Line Numbers
  1. YourVar = "Please Wait"
in a on (Opens a form)click process in the same at the last i kept


Expand|Select|Wrap|Line Numbers
  1. YourVar = ""

then i kept the below code in same form's timer

Expand|Select|Wrap|Line Numbers
  1.  If YourVar = "Please Wait" Then
  2.      Exit Sub
  3.  Else
  4.      DoCmd.Close
  5.  End If
  6.  
Oct 17 '08 #9
GazMathias
228 Recognized Expert New Member
Expand|Select|Wrap|Line Numbers
  1.  If YourVar = "Please Wait" Then
  2.      Exit Sub
  3.  Else
  4.      DoCmd.Close
  5.  End If
  6.  
Hi,

Looks like you need to reset the timer:

Expand|Select|Wrap|Line Numbers
  1.  If YourVar = "Please Wait" Then
  2.      Me.TimerInterval = 1000
  3.      Exit Sub
  4.  Else
  5.      DoCmd.Close
  6.  End If
  7.  
Also make sure its switched on to begin with.

Find the Form's "Timer Interval" property and put 1000 in there. This equates to one second, if memory serves.

So the above will run every one second until the variable is off, at which point the timer is not reset and the form closes.

Gaz
Oct 17 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1695
by: placid | last post by:
Hi all, Just wondering if the cmd module in python uses "busy waiting" for "polling" user command input as this is inefficient. Cheers
3
2824
by: Michelle Anderson | last post by:
Hi, I have this code so it will ask user if they want to save if they click on the "close" button. But some how it also pops up the message when I click on the save button. Is there a way to disable this if user do not click on the "Close" button or if users have already click on the "Save" button first. Thanks for any idea or help. Michelle Private Sub Form_BeforeUpdate(Cancel As Integer) Dim result As Integer result = MsgBox("Do...
4
1659
farooqbob
by: farooqbob | last post by:
When i sending a HTML mail I getting this Erro "could not access "CDO.Message" object" How can i fix this problem
4
2447
by: ssq | last post by:
Hi, I wrote a RunSQL Macros to drop a table and used that on a button. How should i add an "Alert" to it i.e; i should get an "Alert Message" as soon as i click that button.
1
6991
by: ashish | last post by:
Dim oCon Err.Clear Set oCon = Server.CreateObject("ADODB.Connection") If Err.Number = 0 Then '// '// Open an ADODB.Connection to the folder URL '// oCon.Provider = "ExOLEDB.DataSource"
6
1526
by: arnuld | last post by:
I don't understand, every week I post "Welcome Message" as a new post and it gets posted as reply to my older "Welcome Message", automatically. What exactly is happening ? I have tried both PAN and www.groups.google.com interface but still same problem :(
1
3371
by: =?Utf-8?B?QUcgTW9yZW5v?= | last post by:
I had a virus. Ran Norton Antivirus. Now when I start my computer I get "FTP Port is used" error message and no internet access, however, computer is connected to wireless home network. Any suggestions as to how to fix? Thank you
7
11760
by: saurabhsingh | last post by:
Can anyone plz suggest any Idea that How to implement "loading message" in a site with master pages. I am having Default page which is master page enabled and it contains many Gridviews with database connection. This page is taking so much of time to load therefore I want to show loading message for this page only. Thanks in advance..
0
1322
by: dieudonn | last post by:
Hi everyone! I want to add a toolbar (or a button ) to toolbars of the compose message window. I added a functional toolbar to the outlook main window. When i am supposed to add another toolbar to the compose message, it appears on the main window! To create the toolbar on compose message window i do: Outlook.MailItem newEmail; // then i create the newEmail //and i try to get the command bars Office.CommandBars Bars =...
0
9708
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
9588
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10340
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
10085
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 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...
1
7625
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
6857
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
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3828
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2999
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.