G
Guest
I ahve 5 text boxes on my form which I want to build a text string. This
works ok if I have a value in each but I get 'invalid use of null' if one is
null.
How do I skip Nulls when I build the string?
Bruce
Sub mymod()
a = [Forms]![frm_Prod_Fcst_Search]![t_p1]
b = [Forms]![frm_Prod_Fcst_Search]![t_p2]
c = [Forms]![frm_Prod_Fcst_Search]![t_p3]
d = [Forms]![frm_Prod_Fcst_Search]![t_p4]
e = [Forms]![frm_Prod_Fcst_Search]![t_p5]
mystring = a & b & c & d & e
MsgBox (mystring)
End Sub
works ok if I have a value in each but I get 'invalid use of null' if one is
null.
How do I skip Nulls when I build the string?
Bruce
Sub mymod()
a = [Forms]![frm_Prod_Fcst_Search]![t_p1]
b = [Forms]![frm_Prod_Fcst_Search]![t_p2]
c = [Forms]![frm_Prod_Fcst_Search]![t_p3]
d = [Forms]![frm_Prod_Fcst_Search]![t_p4]
e = [Forms]![frm_Prod_Fcst_Search]![t_p5]
mystring = a & b & c & d & e
MsgBox (mystring)
End Sub