Enter address on condition

bunji

Registered User.
Local time
Today, 22:52
Joined
Apr 26, 2005
Messages
124
I have written some code that adds the address to the box dependant on base, but i get the error message

Compile error:

end if without block if.

Code:
Private Sub Report_Open(Cancel As Integer)
    If Me.Base = "STN" Then Me.Address = "address here"
    End If
    
End Sub

Can anyone explain this for me
 
sorry i should have put this in the reports section!
 

Users who are viewing this thread

Back
Top Bottom