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!

Check if field is blank

Status
Not open for further replies.

GiantDaddY

Programmer
Sep 21, 2001
9
BE
Can someone please tell me way this works :

if (asc(rsSVPAVP("spbijz")) <> 32) then

and this does not :

if (rsSVPAVP("spbijz") <> " ") then

???????????????????????????????????
 
There Is A Possibility That There Are Spaces Not Being Accounted For In The Field So Instead Of It Containing Only 1 Space It May Contain 2 or More. My Preference For Checking For Something Like This Is.

If (Len(Trim(rsSVPAVP("spbijz"))) = 0 Then
' Do Something Here
End If


 
When I displayed the value of the field between 2 characters I could only see 1 blank.

But your code works and is better than checking with the asc function and the 32 value, so I adopted it in my script, tnx !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top