Query "where clause" fails when calling a function
Posted
by
guest1
on Stack Overflow
See other posts from Stack Overflow
or by guest1
Published on 2010-12-22T22:37:21Z
Indexed on
2010/12/22
23:54 UTC
Read the original article
Hit count: 119
Hi All, I have a function in Access VBA that takes four parameters.The fourth parameter is a "where clause" that I use in an SQL statement inside the function. The function fails when I include the fourth parameter (where clause). When I remove this fourth parameter, the function just works fine. I am not sure if there is anything wrong with the syntax of the fourth parameter ? Please help. here is the function as called in the Query
FunctionA('Table1','Field1',0.3,'Field2=#' & [Field2] & '# and Value3="' & [Value3] & '"') AS Duration_Field
© Stack Overflow or respective owner