bleep-blop
Registered User.
- Local time
- Today, 16:10
- Joined
- Sep 30, 2013
- Messages
- 24
Hi, very quick question.
This filter vba doesnt work
runtime error 13 type mismatch.
Both Abcode and EmpASID are Numerical.
So is i and f
works fine on its own
works fine too on its own
little bit baffled lol
I cant figure out where i have gone wrong for the syntax.
any help would be greatly appreciated

This filter vba doesnt work
Code:
Me.Filter = "abcode= " & i And "EmpASID = " & f
Me.FilterOn = True
runtime error 13 type mismatch.
Both Abcode and EmpASID are Numerical.
So is i and f
Code:
Me.Filter = "abcode= " & i
Code:
Me.Filter = "EmpASID = " & f
little bit baffled lol
I cant figure out where i have gone wrong for the syntax.
any help would be greatly appreciated