print "special" characters

chewy

SuperNintendo Chalmers
Local time
Today, 04:25
Joined
Mar 8, 2002
Messages
581
How would I be able to print out

If MsgBox(""" & Me.CustomerID.Text & "" is not in the list!" & vbCrLf & "Add it?", vbOKCancel, "Add New Customer Confirmation") = vbOK Then

I want to put the CustomerID in quotes
 
try using Chr(34)

i.e.

If MsgBox(Chr(34) & Me.CustomerID & Chr(34) & " is not in the list!" & vbCrLf & "Add it?", vbYesNo, "Add New Customer Confirmation") = vbYes Then
 
cool thanks that worked. But I thought there was some character to put infront of it to make it print the following character
 
After a while, all the double and triple quotes get boring. Here is what I do...

Dim stQuest as String
Dim stTitle as String
Dim inAnsw as Integer

stTitle = "{" & Me.Customer & "} is not in the list"
stQuest = "Add new customer? "

inAnsw = MsgBox( stQuest, vbYesNo, stTitle )

...

Think SIMPLE.
 
If (MsgBox("CustomerID: '" & Me.cboCustomer.Column(0) & "' is not in the database!",vbExclamation, "Not In!")=vbYes) then


Jon
 

Users who are viewing this thread

Back
Top Bottom