D
Del
I'm using Access 2000. I want to check several controls for null. If it
were a single control I would use this code:
If IsNull(Me.MyControl1) then
Do my stuff
End If
But I have several controls so I tried the following code without success:
Do
intLoop1 = intLoop1 + 1
strControl = "me.MyControl" & intLoop1
If IsNull(strLotControl) Then
MsgBox "Empty"
End If
Loop Until intLoop1 = 8
I imagine there are better ways to do this and I'm open to improvement, but
I would also like to know how to use a variable here.
were a single control I would use this code:
If IsNull(Me.MyControl1) then
Do my stuff
End If
But I have several controls so I tried the following code without success:
Do
intLoop1 = intLoop1 + 1
strControl = "me.MyControl" & intLoop1
If IsNull(strLotControl) Then
MsgBox "Empty"
End If
Loop Until intLoop1 = 8
I imagine there are better ways to do this and I'm open to improvement, but
I would also like to know how to use a variable here.