I have a ZipCode table:
ID ZipCode City
I have a form that allows the user to enter a zip code. I need to check that zip code against the table above to determine if it is Rural or Urban. I want to write an If statement something like this:
I don't know how to do this in VBA. Could somebody help me?
TIA,
~RLG
ID ZipCode City
I have a form that allows the user to enter a zip code. I need to check that zip code against the table above to determine if it is Rural or Urban. I want to write an If statement something like this:
Code:
If form.ZipCode is in ZipCode table Then
Territory = 'Urban'
Else
Territory = 'Rural'
EndIf
TIA,
~RLG