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!

Null Values

Status
Not open for further replies.

technohead

Technical User
Jan 12, 2002
64
US
Hi,
i am taking values from the database and want to validate it so that if there is no value in the database corresponding to the field then the textbox on the form will just be zero.
this is the way i am using it, but brings up an item not found error for some fields.

is this way suitable or is there a better way of doing it




If IsNull(rs1!SqYardsUsed) Then
frmOrdersandSales.txtordSqyardsUsed.Text = ""
Else
frmOrdersandSales.txtordSqyardsUsed.Text= rs1SqYardsUsed
End If


thanks
 
no need for IsNull()

frmOrdersandSales.txtordSqyardsUsed.Text = "" & _
= rs1SqYardsUsed

 
Is this exactly how it should be entered?? it just comes up as red text. do i not need an if statement or anything
 
how did that = get in there? ..thanks =mmilan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top