Hi,
I have a query in Access where the results of one of the fields is based on whats returned by a function call with three parameters. The parameters are fields in the table. There's only one table in the query. When I run the query, I get error message
3071, which essentially says the expression is too complex. I've isolated it to the function call. I have a similar query elsewhere, but it only has one parameter. If I remove the fields as parameters and replace it with hard-coded text, the query runs
without a problem. The field as it exists in the query design view window is listed below:
Referral Source: sGetReferralSource([Referral_Source_Facility],[Referral_Source_MD_Office],[Referral_Source_Other])
The three fields are defined as text in the table and the receiving function in VBA is expecting three string parameters and it returns a string. It seems to be pretty basic, standard stuff, so I have no idea what could be wrong. Again, the three parameters
are fields as they are named in the table. There are a number of things I can do to work around the problem, so I'm not looking for workarounds. I really want to know why this isn't working. Any help or suggestions would be appreciated.
Eric