Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

msgBox

Status
Not open for further replies.

joyceda59

Technical User
Apr 3, 2007
29
CA
hii

this might seem like a reaallly stupid question. I am having trouble with the syntax of the msgBox This is what i entered as code:

MsgBox("The distribution date is invalid",0,"Select a date")

the error keeps occurring: msgBox if denied.

I have no clue what the problem is.

plz advise. Thx in advance
 
either get rid of the parens:
MsgBox "The distribution date is invalid",0,"Select a date"
or use it as an expression:
myReply = MsgBox("The distribution date is invalid",0,"Select a date")

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Are you writing the MsgBox server side or client side??


Also you need a return value from the MsgBox, so you need to set something like the following:
Code:
dim msgBoxReturnValue
msgBoxReturnValue
 = MsgBox("The distribution date is invalid", 0 ,"Select a date")

[monkey][snake] <.
 
hey monksnake...i tries your code. But i still get this error:

Permission denied: 'MsgBox'

plz advise
 
I don't think MsgBox is a good function to call server-side.
 
I don't think MsgBox is a good function to call server-side.

I don't either PHV.



joyceda, can you post more of your code so we can see where you are trying to use MsgBox at?




[monkey][snake] <.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top