G
Guest
Hello
Anybody available??? Please help
Below is what I have in the Form, in the PYE field, AfterUpdate event procedure. But it is not working...
Private Sub PYE_AfterUpdate(
Me![5500 Due] = DateAdd("m", 7, Me![PYE]
Me![PBGC Due #2] = DateAdd("m", 10, Me![PYE] + 15
Me![SAR] = DateAdd("m", 2, Me![5500 Due]
If Me![Plan Participants] >= 500 The
Me![PBGC Due #1] = DateAdd("m", 2, Me![PYE]
Els
Me![PBGC Due #1] = Nul
End I
End Su
The problem with the expression is with the If statement as the Plan Participants is not a field linked directly to the Form; instead it is a field from other Table called Plans. I cannot bring that field to the Form because there is no direct relationship so to use Me! is not probably right. Should I use the Dim record as...expression? Is there a solution to this issue? With the above expression, I am getting a run time error '2465'. Microsoft Access can't find the field 'Plan Participants' referred to in your expression
BIG THANKS for anyone who can help
Regards
Natali
Anybody available??? Please help
Below is what I have in the Form, in the PYE field, AfterUpdate event procedure. But it is not working...
Private Sub PYE_AfterUpdate(
Me![5500 Due] = DateAdd("m", 7, Me![PYE]
Me![PBGC Due #2] = DateAdd("m", 10, Me![PYE] + 15
Me![SAR] = DateAdd("m", 2, Me![5500 Due]
If Me![Plan Participants] >= 500 The
Me![PBGC Due #1] = DateAdd("m", 2, Me![PYE]
Els
Me![PBGC Due #1] = Nul
End I
End Su
The problem with the expression is with the If statement as the Plan Participants is not a field linked directly to the Form; instead it is a field from other Table called Plans. I cannot bring that field to the Form because there is no direct relationship so to use Me! is not probably right. Should I use the Dim record as...expression? Is there a solution to this issue? With the above expression, I am getting a run time error '2465'. Microsoft Access can't find the field 'Plan Participants' referred to in your expression
BIG THANKS for anyone who can help
Regards
Natali