Well, you can't just pull a field from a table out of nowhere in the sub. User is a table containing AccessID. You can pass it to the sub as a parameter:
Private sub Command23_Click(strText as string, nUser as integer)
You pass the AccessID to the sub as nUser, then
Code:
Select Case nUser
case is = 1,7,10,11
'use michigan
case is = 1,8,10,12
'use Oregon
case is = 1,9,10,13
'use California
case else
end select
.
But there's logic errors in this code and yours. If the nUser (AccessID) is 1 or 10, my code will always select Michigan, yours will always select California.
Both can't be right but both can be WRONG!
Whatcha think?