473,405 Members | 2,187 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,405 software developers and data experts.

Msgbox without input?

Is there a way to have a msgbox popup a message without users to click
ok and it will go away in 5s. I prefer to have this without creating
a form to replace the msgbox.

Thanks.
Perry

Jul 15 '07 #1
8 7848
No.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

<pe******@yahoo.comwrote in message
news:11**********************@n2g2000hse.googlegro ups.com...
Is there a way to have a msgbox popup a message without users to click
ok and it will go away in 5s. I prefer to have this without creating
a form to replace the msgbox.

Thanks.
Perry
Jul 15 '07 #2
On Sun, 15 Jul 2007 08:42:36 -0700, pe******@yahoo.com wrote:
Is there a way to have a msgbox popup a message without users to click
ok and it will go away in 5s. I prefer to have this without creating
a form to replace the msgbox.

Thanks.
Perry
Sorry, you'll have to create your own message form, and use it's timer
event to close itself.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Jul 15 '07 #3

<pe******@yahoo.comwrote:

Msg ID: news:11**********************@n2g2000hse.googlegro ups.com...
Is there a way to have a msgbox popup a message without users to click
ok and it will go away in 5s. I prefer to have this without creating
a form to replace the msgbox.
Yes, and it`s so simple. Sorry me, but I think that 5 sec. is to much for
closing message box. Maybe you should try with 2 sec. ?

-----------
Dim oSHL As Object
Set oSHL = CreateObject("WScript.Shell")

Rem* Now, you must replace your standard message box with this one

oSHL.PopUp " -=This message will be closed by 5 seconds =-", 5,
"Informacija", vbInformation
-----------

--
Eli.

Jul 15 '07 #4
Unless I misunderstand, this will require that the Windows Scripting Host be
available on the user's machine. Many people here avoid WSH solutions
because, often, the system administrators in companies not only remove them,
but search and startup for "rogue applications" which may have reinstalled
it.

They do this because WSH is a target for viruses and worms.

On the other hand, creating a simple form with a timer, all in Access, is
simple, straightforward, and not dependent on external software that may not
be installed.

Larry Linson
Microsoft Access MVP
"Jasmin Terzic" <dr***@on.babywrote in message
news:f7**********@news.albasani.net...
>
<pe******@yahoo.comwrote:

Msg ID: news:11**********************@n2g2000hse.googlegro ups.com...
>Is there a way to have a msgbox popup a message without users to click
ok and it will go away in 5s. I prefer to have this without creating
a form to replace the msgbox.

Yes, and it`s so simple. Sorry me, but I think that 5 sec. is to much for
closing message box. Maybe you should try with 2 sec. ?

-----------
Dim oSHL As Object
Set oSHL = CreateObject("WScript.Shell")

Rem* Now, you must replace your standard message box with this one

oSHL.PopUp " -=This message will be closed by 5 seconds =-", 5,
"Informacija", vbInformation
-----------

--
Eli.

Jul 16 '07 #5
OK, then, another similar question:

Is there a way to have a message popup ontop of all windows (not only
in Access, but ontop of other windows) to give users a warning
message?

Perry

Jul 16 '07 #6

"Larry Linson" <bo*****@localhost.notwrote:

Msg ID: news:dRAmi.1893$gC5.909@trnddc04...
Unless I misunderstand, this will require that the Windows Scripting Host
be available on the user's machine.
No, on this PC I have installed just WinXP SP2 + M$ Office 2003 (full
version) and nothing else. This code working ok.
They do this because WSH is a target for viruses and worms.
Yes, I understand. So, what you think about "Status" field in forms?
Example, all my forms doesn`t have a MsgBox, but have a little "status
field" who send information about errors, status, example info about fields,
or something else to operators who work with form.

This is a little example (picture) when "MyStatusField" is on the top of
form.

http://img249.imageshack.us/img249/7...usfieldoj2.jpg

So, what do you think, is that a right answer? :)

--
Eli.

Jul 16 '07 #7

"Jasmin Terzic" <dr***@on.baby>
Msg ID: news:f7**********@news.albasani.net...
This is a little example (picture) when "MyStatusField" is on the top of
form.
http://img249.imageshack.us/img249/7...usfieldoj2.jpg
It`s a little "My status field" form for testing:

Link: http://www.sendspace.com/file/5wprpr

--
Eli.
Jul 16 '07 #8
In later versions of Access, you could try:

MsgBox "Say what?", vbSystemModal

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

<pe******@yahoo.comwrote in message
news:11*********************@n60g2000hse.googlegro ups.com...
OK, then, another similar question:

Is there a way to have a message popup ontop of all windows (not only
in Access, but ontop of other windows) to give users a warning
message?

Perry
Jul 17 '07 #9

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

Similar topics

2
by: js | last post by:
Hi all, I currently encounter a problem and it is urgent to me. After calling the MsgBox.Show(), the message box is shown with non-modal mode, what is the possible reason??? This only happen...
1
by: Daryl Zavier | last post by:
Hi Guys, I'm really new to .Net development and need your advise on this. Recently I've completed a web application using VB.net (Visual Studio .Net 2003). In the application whenever the user...
3
by: Asif Rahman | last post by:
Hi all! Please improve on the following code to make sure the record gets deleted only when the function returns false. Now I see the msgbox, but the record gets deleted no matter the user...
6
by: Lapchien | last post by:
In this bit of code provided so helpfully by Nath: Private Sub Command118_Click() Dim rs As DAO.Recordset Set db = CurrentDb Set rs = db.openrecordset("IMPORT")
0
by: CFW | last post by:
I use the below code to move to the selected record in a list box to that record in another form: DoCmd.OpenForm "frmWorksheet", acNormal, , , acFormEdit, acWindowNormal rst.CursorLocation =...
1
by: Bucky | last post by:
I haven't found any vbscript code that can stop the form submission/postback after the msgbox. The problem is that asp:button is rendered as <input type="submit"> instead of <input type="button">....
2
by: Radith Silva | last post by:
I need to use the MsgBox function like I used to in VB 6.0 So all i do is: MsgBox ("Please provide Input") BUT IN .NET: The error reads "msgbox is a namespace"
2
by: perkykoala | last post by:
I apologize in advance for being REALLY detailed/verbose. It's the result of staring/tweaking code for too long. Using VB 2005: I need to design a multiple choice test (unfortunately, I can't...
5
by: win | last post by:
I'm using ASP.Net 2.0 MsgBox("Are you sure to delete?", MsgBoxStyle.Question + MsgBoxStyle.OkCancel, Page.Title.ToString) The message box sometimes does not pop up on the top of the screen....
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: 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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
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,...
0
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...

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.