I have tried adding the where and I am still getting the same 3464 runtime error. it highlights this line.
If IsNull(DLookup("UserAccess", "tblUsersPermits", asWhere)) Then
any other suggestions would be greatly appreciated.
I created a database with restriction to forms for users using a module.
I am getting a "runtime error 3464 data type mismatch in criteria expression" I marked in red where I get the error. Can anyone help me please!
This is the code for the module
Public Function Permiso(sFormName As...