This string of code is riddled with errors, however I used it in my other database and it worked fine (only my field names were different).
All I'm trying to do is have a checkbox populate a field by grabbing the data from the field next to it. I keep getting Compile Error Messages.
I've been trying to figure this out for 6 hours now. I'm not a student of MS ACCESS, so I feel like I'm breaking a very basic rule. Any help will be mega appreciated! Thanks.
Private Sub chkSwitch_Click()
If Me.14T-PAID-APT1 = True Then
Me.14TaylorApt-1 = Me.PopulatedRent1
End If
End Sub
Private Sub 14T_PAID_APT1_Click()
If Me.14T-PAID-APT1 = True Then
Me.14TaylorApt-1 = Me.PopulatedRent1
End If
If Me.14T-PAID-APT1 = False Then
Me.14TaylorApt-1 = 0
End If
End Sub
All I'm trying to do is have a checkbox populate a field by grabbing the data from the field next to it. I keep getting Compile Error Messages.
I've been trying to figure this out for 6 hours now. I'm not a student of MS ACCESS, so I feel like I'm breaking a very basic rule. Any help will be mega appreciated! Thanks.
Private Sub chkSwitch_Click()
If Me.14T-PAID-APT1 = True Then
Me.14TaylorApt-1 = Me.PopulatedRent1
End If
End Sub
Private Sub 14T_PAID_APT1_Click()
If Me.14T-PAID-APT1 = True Then
Me.14TaylorApt-1 = Me.PopulatedRent1
End If
If Me.14T-PAID-APT1 = False Then
Me.14TaylorApt-1 = 0
End If
End Sub