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

ado recordset to textbox =invalid use of null 1

Status
Not open for further replies.

TRYP

Programmer
Jun 20, 2000
136
US
offending code :

txtAddr2 = resultSetName!STUDENT_LAST_NAME

love note:

invalid use of null (error # 94)

help:

any you can spare !
 
You can do the following:

txtAddr2 = "" & resultSetName!STUDENT_LAST_NAME


The empty string should solve any problems with null records.
 
You can use the immediate if function
IIf(expr, truepart, falsepart)

txtAddr2 = iif(isnull(resultSetName!STUDENT_LAST_NAME),"",resultSetName!STUDENT_LAST_NAME)
 
Thanks sooooo much
it worked like a charm...
uh, why did it work ????
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top