473,487 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Modifying Msgbox to include "Pause" button

43 New Member
I have a msgbox that alerts the user when he/she has reached the appointed record entry. When the msgbox appears, I would like to give the user the option the select "Pause" along side the "okay". If the user select "Pause" then the user is asked to select a reason for pausing (example: wrong cell info; bad cell used...), and if okay is choosen, the the code will continue to open the "GeneralTAbPullTest" form. Any help will be appreciated. Below is the current code being used:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_AfterInsert()
  2.  
  3. If Not IsNull(Me.SN.Value) Then
  4.     LastPosSN = Me.SN.Value
  5. End If
  6. If PosPullTestCount = Me.PullTestNum.Value Then
  7.     MsgBox "Time to perform a pull-test on a scrap cell!"
  8.     PosPullTestCount = 1
  9.     Me.Text30.Value = Me.PullTestNum.Value
  10.     DoCmd.OpenForm "GeneralTabPullTest"
  11. Else
  12.     PosPullTestCount = PosPullTestCount + 1
  13.     Me.Text30.Value = Me.PullTestNum.Value
  14. End If
  15.  
  16. End Sub
Mar 17 '13 #1
2 1294
zmbd
5,501 Recognized Expert Moderator Expert
you can not add a "pause" to the standard msgbox; however, you can add "yes/no/cancel", "abort,retry,ignore" and so forth
> MsgBox Function

Your only other option for a "pop-up" type message is to code a custom form and possibly custom events to handle what you want.
Mar 17 '13 #2
ADezii
8,834 Recognized Expert Expert
@tmdrake:
You can do exactly what you have requested (Pause and Okay on a Standard Message Box), but the Code is rather complex and involves a concept called 'Hooking'.
Mar 18 '13 #3
zmbd
5,501 Recognized Expert Moderator Expert
ADezii,
You're absolutly correct in that one can pull the hooks etc; however, that is normally something I don't recommend for the faint of heart nor for the begining VBA programmer as it is outside if the normal core VBA and can be easily broken. I've tried things like this in the past and have had issues where the wrong version of this or that DLL or .Net or what have you was installed on the target computer (or not installed). Usually not an issue to have my IT push the update down; however, it can take days or weeks to get a workorder thru such a large company.
Mar 18 '13 #4

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

Similar topics

5
6077
by: Danny Anderson | last post by:
Hola! I am working on a program where I am including a library that came with my numerical methods textbook. The "util.h" simply includes a large number of files. I had to change the util.h...
5
4107
by: Brian.Steele | last post by:
Greetings everyone. See http://www.spiceisle.com/cgi-bin/slideshow/slideshow.cgi?dir=brian/personal/2005/uk_trip/images&type=jpg The "Pause" button works in IE, but not in Firefox. Any ideas...
11
39848
by: Paminu | last post by:
Is there something like system("PAUSE") for linux?
4
30331
by: Kerwin Cabrera | last post by:
I am writing a console application and I would like to put a "Press any key..." message once the program is done executing. Currently, when it executes it returns to the prompt. I have tried...
34
2643
by: Frederick Gotham | last post by:
Is the domestic usage of the C "for" loop inefficient when it comes to simple incrementation? Here's a very simple program that prints out the bit-numbers in a byte. #include <stdio.h> #include...
14
2333
by: Chen Shusheng | last post by:
CSS white here: Simply strange, I found "define" can not work with "malloc". Together my complier will say "parse error". Could anyone tell me why? ------------------------- #define MAX 10000...
33
25175
by: Chen shuSheng | last post by:
I have a code: --------------------------- #include <iostream.h> #include <stdlib.h> int main() { int max=15; char line; getline(line,max); system("PAUSE");
5
6465
by: CoderMarc | last post by:
Hi, I can not get the system pause to work in a simple program. Here is my program below: // i/o example #include <iostream> using namespace std; int main ()
12
1895
by: kevineller794 | last post by:
I want to make a split string function, but it's getting complicated. What I want to do is make a function with a String, BeginStr and an EndStr variable, and I want it to return it in a char...
0
1335
by: jorgetheawesome | last post by:
Hi! I was writing a program, and for debugging, used the system("pause") command. I am running Windows XP. Its an MS-DOS app, programmed in Dev-C++. But the program, when compiled, runs...
0
6967
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...
1
6846
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
7341
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
5439
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,...
1
4870
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...
0
4564
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...
0
3076
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...
1
600
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
266
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...

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.