J
JJR
I have a simple select case statement that I want to return a value to a
table I
call Players. I evaluate a date range from the field DATE_OF_BI and I want
to have the FindGroup field to be passed the result. The code runs but no
value to returned the field FindGroup. What am i doing wrong.
Thanks for any help. Code is as follows:
Option Compare Database
Function GetGroup() As String
Select Case DATE_OF_BI
Case #8/1/1989# To #7/31/1990#
FindGroup = "U15"
Case #8/1/1990# To #7/31/1991#
FindGroup = "U14"
Case Else
FindGroup = "Check DOB"
End Select
End Function
table I
call Players. I evaluate a date range from the field DATE_OF_BI and I want
to have the FindGroup field to be passed the result. The code runs but no
value to returned the field FindGroup. What am i doing wrong.
Thanks for any help. Code is as follows:
Option Compare Database
Function GetGroup() As String
Select Case DATE_OF_BI
Case #8/1/1989# To #7/31/1990#
FindGroup = "U15"
Case #8/1/1990# To #7/31/1991#
FindGroup = "U14"
Case Else
FindGroup = "Check DOB"
End Select
End Function