G
Guest
Hi,
I would like to populate an unbound check box based on a if > then > else
test.
My current (incorrect) code is on the on_current event of my form and is as
follows.
If
Me.LicenceGranted < #7/1/2002# And Me.LicenceSurrendered Is Null Or
Me.LicenceGranted < #7/1/2002# And Me.LicenceSurrendered >= #7/1/2001# Then
Me.chk2001_02.Value = Checked
Else
Me.chk2001_02.Value = Unchecked
End If
I am getting an error that there is an if statement without an end if.
Have tried many combinations but am getting same error.
A little help on why my structure is incorrect would be most welcomed.
Thanks
I would like to populate an unbound check box based on a if > then > else
test.
My current (incorrect) code is on the on_current event of my form and is as
follows.
If
Me.LicenceGranted < #7/1/2002# And Me.LicenceSurrendered Is Null Or
Me.LicenceGranted < #7/1/2002# And Me.LicenceSurrendered >= #7/1/2001# Then
Me.chk2001_02.Value = Checked
Else
Me.chk2001_02.Value = Unchecked
End If
I am getting an error that there is an if statement without an end if.
Have tried many combinations but am getting same error.
A little help on why my structure is incorrect would be most welcomed.
Thanks