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

string problem

Status
Not open for further replies.

pertotal

IS-IT--Management
Sep 29, 2001
6
0
0
BE
I'm breaking my head on a stupid problem :

I have an If then else structure with a string comparison,
I want to show a msgbox when a certain string is empty : null value. If I use me![string] = "" it won't work.

another question on the use of a message box :

I want to use a variable field + text in a message box, how do I use the syntax :

Msgbox([string] & "blablablabla!")

how do I make this work?

thnx in advance
 
Try this

If IsNull(Me![String]) then

Hope this helps,

bye

Martin

 
"" is a zero length string, which is not null. To test for 'nullness' you need to use the IsNull function.

As for the other part, you just need to reference it in correctly. e.g
msgbox ("The value in field has been changed to " & me.fieldname & ". Are you sure?")

James Goodman
j.goodman00@btinternet.com
 
thanx for the quick response : it works
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top