Break up long "if" statement, How?

Meltdown

Registered User.
Local time
Today, 15:18
Joined
Feb 25, 2002
Messages
472
How do I break up a long statement like this:

If Not IsNull([Forms]![frmCustomerReports2]![clinica].[Value]) And _
IsNull([Forms]![frmCustomerReports2]![aalto].[Value]) And _
IsNull([Forms]![frmCustomerReports2]![other].[Value]) And Not _
IsNull([Forms]![frmCustomerReports2]![Combo15].[Value]) And _
IsNull([Forms]![frmCustomerReports2]![Combo12].[Value]) And Not _
IsNull([Forms]![frmCustomerReports2]![Text1].[Value]) And Not _
IsNull([Forms]![frmCustomerReports2]![Text3].[Value]) Then
MsgBox "correct number of values"
Else
MsgBox "Incorrect number of values"
End if

the above doesn' t seem to work

Thanks for any help
 
Pat,

Would a For Each... Next work better here? Just have it cycle through all textboxes and determine if they all have data or not?
 

Users who are viewing this thread

Back
Top Bottom