J
J
Say I have a table called Table1 with fields A, B, and C. I create a combo
box (combo1) on a report called Report1. The combo fills in itself and
populates text boxes (box1, box2) corresponding to certain columns. However,
some fields in the table are blank and I get a zero length string error.
The following code is typed into the after update event in my combo box:
Me.box1 = Me.combo1.Column(2)
Me.box2 = Me.combo1.Column(3)
I can populate the text boxes only when there is no blanks in the fields
within the table. What's the code so that I may have zero length strings in
my text boxes? Where am I supposed to type this code in VBA?
box (combo1) on a report called Report1. The combo fills in itself and
populates text boxes (box1, box2) corresponding to certain columns. However,
some fields in the table are blank and I get a zero length string error.
The following code is typed into the after update event in my combo box:
Me.box1 = Me.combo1.Column(2)
Me.box2 = Me.combo1.Column(3)
I can populate the text boxes only when there is no blanks in the fields
within the table. What's the code so that I may have zero length strings in
my text boxes? Where am I supposed to type this code in VBA?