G
Guest
My database is for conference registration. I have just learned how to write
the code and call the procedure to calculate the registration fee based on 3
variables. Now I want to do the same thing for the preconference fee but it
does not work and I get an error message saying the "afterupdate entered as
the event property setting produced the following error: Scubscript out of
range"
the code begins with:
Function FindPreConfFee(varRegStat As String, varRegDeadline As String, _
varRegPreConf As String) As Integer
If varRegStat = "Member" _
And varRegDeadline = "EB" _
And varRegPreConf = "A" Then
RegPreConfFee = 50
ElseIf varRegStat = "Member" _
And varRegDeadline = "EB" _
And varRegPreConf = "A & B" Then
RegPreConfFee = 100
....
and so on ...
the afterupdate event property setting I used is:
=FindPreConfFee([RegStat],[RegDeadline],[RegPreConf])
Can someone please tell me what I am doing wrong? Your help is appreciated!
the code and call the procedure to calculate the registration fee based on 3
variables. Now I want to do the same thing for the preconference fee but it
does not work and I get an error message saying the "afterupdate entered as
the event property setting produced the following error: Scubscript out of
range"
the code begins with:
Function FindPreConfFee(varRegStat As String, varRegDeadline As String, _
varRegPreConf As String) As Integer
If varRegStat = "Member" _
And varRegDeadline = "EB" _
And varRegPreConf = "A" Then
RegPreConfFee = 50
ElseIf varRegStat = "Member" _
And varRegDeadline = "EB" _
And varRegPreConf = "A & B" Then
RegPreConfFee = 100
....
and so on ...
the afterupdate event property setting I used is:
=FindPreConfFee([RegStat],[RegDeadline],[RegPreConf])
Can someone please tell me what I am doing wrong? Your help is appreciated!