Hi,
Does anyone know how I can read in a blank (or empty) cell and spit out an empty value? See my code below, as I have everything set up except for the null string.
Option Compare Database
Function cnty(x) As String
Select Case x
Case "Bronx", 5: cnty = "Bronx"
Case "New York", 61: cnty = "New York"
Case "Kings", 47: cnty = "Kings"
Case "Queens", 81: cnty = "Queens"
Case "Richmond", 85: cnty = "Richmond"
Case "Suffolk", 103: cnty = "Suffolk"
Case "Nassau", 59: cnty = "Nassau"
Case "Westchester", 119: cnty = "Westchester"
Case cnty = vbNullString
Case Else: cnty = "Upstate NY"
End Select
End Function
Thanks,
Henry
Does anyone know how I can read in a blank (or empty) cell and spit out an empty value? See my code below, as I have everything set up except for the null string.
Option Compare Database
Function cnty(x) As String
Select Case x
Case "Bronx", 5: cnty = "Bronx"
Case "New York", 61: cnty = "New York"
Case "Kings", 47: cnty = "Kings"
Case "Queens", 81: cnty = "Queens"
Case "Richmond", 85: cnty = "Richmond"
Case "Suffolk", 103: cnty = "Suffolk"
Case "Nassau", 59: cnty = "Nassau"
Case "Westchester", 119: cnty = "Westchester"
Case cnty = vbNullString
Case Else: cnty = "Upstate NY"
End Select
End Function
Thanks,
Henry