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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Referring to a String Variable 1

Status
Not open for further replies.

random75

Technical User
Apr 16, 2008
34
US
I have a string variable declared. What syntax would I use in the body of a MsgBox statement if I want to incorporate the value of the string variable into the middle of the message?
 
MsgBox "The variable contains " & VariableName & " at this time"

Paul
MS Access MVP 2007/2008
 
from one of your previous posts:
Code:
MsgBox "Error " & Err.Number & " - " & Err.Description, vbExclamation, "CalendarFor()"
Err.number and Err.Description are both variables

Greg
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top