Response should be Dim'd as an Integer.
"Space" is a "Reserved Word" in Access ... for the function Space()
Also .....
You can not Dim the variable as you are doing. At least you are not getting what you think you are.
Dim space, enc, swim, enc2 As Integer
In the line above ... only "enc2"...