A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Code for Pop Up Box



 
 
Thread Tools Display Modes
  #1  
Old December 20th, 2006, 04:27 PM posted to microsoft.public.access.forms
Minnie M
external usenet poster
 
Posts: 27
Default Code for Pop Up Box

I’m using Access 2002 and want to add a pop up box that will give information
when a combo box is clicked. Can anyone tell me what code I should use?
  #2  
Old December 20th, 2006, 04:34 PM posted to microsoft.public.access.forms
fredg
external usenet poster
 
Posts: 4,386
Default Code for Pop Up Box

On Wed, 20 Dec 2006 08:27:01 -0800, Minnie M wrote:

I¢m using Access 2002 and want to add a pop up box that will give information
when a combo box is clicked. Can anyone tell me what code I should use?


To open a form and have everything wait until the form is closed:
DoCmd.OpenForm "FormName", , , , , acDialog

or if you just wish to display information, you could use a MsgBox:

MsgBox "This is some information."

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
  #3  
Old December 21st, 2006, 10:07 AM posted to microsoft.public.access.forms
Minnie M
external usenet poster
 
Posts: 27
Default Code for Pop Up Box

Hi Fred, I think a message box may be what I need. The combo box is a list of
months, each month associated with a different town. So, I need to inform the
user which month he should select. Would a message box pop up when the user
clicks on the combo box, I don’t need to have it displayed permanently. Also,
how do I make a message box?

"fredg" wrote:

On Wed, 20 Dec 2006 08:27:01 -0800, Minnie M wrote:

Iʼm using Access 2002 and want to add a pop up box that will give information
when a combo box is clicked. Can anyone tell me what code I should use?


To open a form and have everything wait until the form is closed:
DoCmd.OpenForm "FormName", , , , , acDialog

or if you just wish to display information, you could use a MsgBox:

MsgBox "This is some information."

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

  #4  
Old December 21st, 2006, 05:08 PM posted to microsoft.public.access.forms
fredg
external usenet poster
 
Posts: 4,386
Default Code for Pop Up Box

On Thu, 21 Dec 2006 02:07:00 -0800, Minnie M wrote:

Hi Fred, I think a message box may be what I need. The combo box is a list of
months, each month associated with a different town. So, I need to inform the
user which month he should select. Would a message box pop up when the user
clicks on the combo box, I don’t need to have it displayed permanently. Also,
how do I make a message box?

"fredg" wrote:

On Wed, 20 Dec 2006 08:27:01 -0800, Minnie M wrote:

Iʼm using Access 2002 and want to add a pop up box that will give information
when a combo box is clicked. Can anyone tell me what code I should use?


To open a form and have everything wait until the form is closed:
DoCmd.OpenForm "FormName", , , , , acDialog

or if you just wish to display information, you could use a MsgBox:

MsgBox "This is some information."

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail



If you just want to display information, code the AfterUpdate or the
Click event (which one depends upon what you are doing) of the combo
Box:

MsgBox "What do you want to say here."

If you wish to give the user a choice of options and react to the
choice selected:

If MsgBox("Add this record to the table?",vbQuestion + vbYesNo) =
vbYes Then
' Add the record here
Else
' Do something else here
End If

Please look up MsgBox in VBA help.

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:15 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.