Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Project (adp) Function in Query doesn't work

Status
Not open for further replies.

cmmrfrds

Programmer
Feb 13, 2000
4,690
US
I am developing an application using Access project as opposed to an Access MDB. In Access MDB, I was accustomed to using functions in my queries, but I get an error when trying to use a function in Access Project. The error is "funtion not recognized". I put it in a public module just like when coding an MDB. Is this not supported in a project? Do I need to qualify the function? Do I need to set reference libraries? Any ideas?

Thank you
Jerry
 
You can't do it because you are not using Jet anymore you are using the database engine of your backend. All the data processing is done on the server so it can't see any routines you have written on the local machine. You need to write stored procedures to put functions in your SQL. Durkin
alandurkin@bigpond.com
 
If I change the RecordSource in the Form, I can use the function and it works okay. It will accept the function, but in the query builder it won't. I have noticed other problems in the query builder. For example, I used the CASE statement in my stored procedure but it wouldn't accept it in the query builder. It seems to me the query builder in an adp is deficient.

Thank you,
Jerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top