Continuous Form.,After Update...If then...Coding issue (1 Viewer)

gearhead03

New member
Local time
Today, 09:11
Joined
Apr 3, 2012
Messages
2
I am using a yes/no box on a Continuous Form. This code works;
Code:
Private Sub Check38_AfterUpdate()
Me!HERITAGEPAIDDATE.Value = Me!DateReceived
Me!HERITGAEPAIDCHKNUM.Value = Me!CheckNumber
End Sub

the appropriate boxes update with the proper information.

I need to also have the information removed if the box is unchecked. I have this code but nothing happens when I use it. What have I done incorrect?
Code:
Private Sub Check38_AfterUpdate()
If Me!Check38.Value = yes Then
  Me!HERITAGEPAIDDATE.Value = Me!DateReceived
  Me!HERITGAEPAIDCHKNUM.Value = Me!CheckNumber
Else
  Me!HERITAGEPAIDDATE.Value = ""
  Me!HERITGAEPAIDCHKNUM.Value = Me!CheckNumber
End If
End Sub
 

fvdb

Registered User.
Local time
Today, 15:11
Joined
Aug 24, 2015
Messages
67
Try if me!check38.value = True
 

gearhead03

New member
Local time
Today, 09:11
Joined
Apr 3, 2012
Messages
2
Works Perfectly! Thanks for you help!
 

Users who are viewing this thread

Top Bottom