Since the Checkbox is tied to a Boolean Field, so you can't compare them to strings, like you've done, You can use True/False or 0/-1:
Code:If Me.Cach = True Then Me.HASPa = Me.Text29 Me.AmountPa = Me.Text31 ElseIf Me.Cach = False Then Me.HASPa = 0 Me.AmountPa = 0 End If
I'd also put this in the Cach_AfterUpdate event, rather the the Form_AfterUpdate event.
Linq ;0)>
First of all, a checkbox does not have text value so "Yes" or "no" will not work.
If Me.Cach = True
or
If Me.Cach = -1
or
If Me.Cach = False
or
If Me.Cach = 0
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Do you have code in the form OnCurrent event? The error references that event.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.