technohead
Technical User
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
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