revQueryDatabase inquiry

Creating desktop or client-server database solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
gpearson
Posts: 84
Joined: Wed Feb 03, 2010 12:55 pm

revQueryDatabase inquiry

Post by gpearson » Fri Apr 04, 2014 1:28 am

I am trying to use this in my application but when I issue

Code: Select all

revQueryDatabase(gDatabaseID, tSQL)
I get an error message that says:

stack "ApplicationName": execution error at line 214 (Handler: can't find handler) near "revQueryDatabase", char 1

gDatabaseID has a value of 6
tSQL has a value of Select * from Income_Categories


Has anyone ran into this before
---
Graham Pearson
Goshen, IN USA

We Are Closed Today is your single internet resource for Indiana Area School Closings, Visit http://www.weareclosedtoday.com

gpearson
Posts: 84
Joined: Wed Feb 03, 2010 12:55 pm

Re: revQueryDatabase inquiry

Post by gpearson » Fri Apr 04, 2014 1:44 am

I figured it out. The command returns a recordSetID then I use another Database Command to get the results from the record set. I ma not used to these extra steps. But it was a good learning experience.
---
Graham Pearson
Goshen, IN USA

We Are Closed Today is your single internet resource for Indiana Area School Closings, Visit http://www.weareclosedtoday.com

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: revQueryDatabase inquiry

Post by Klaus » Fri Apr 04, 2014 12:18 pm

Hi Graham,

the problem was that you used the FUNCTION -> revQueryDataBase() like a HANDLER!
Therefore the error -> can't find HANDLER...

Correct use would be:
...
PUT revQueryDatabase(gDatabaseID, tSQL) into SomeVariable
...

But I think you were looking for -> revDataFromQuery(()
That will reaturn the REAL data from the database :-)


Best

Klaus

Post Reply