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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"cursor" must be created with SELECT ... INTO TABLE (Error 1815 2

Status
Not open for further replies.

Koen Piller

Programmer
Jun 30, 2005
841
NL
Hi,

I have created a cursor, this cursor is used to build an other cursor in a SQL select statement.
Now I get this nasty error message, referring to the 1st cursor. The error message can be ignored and my routine will continue to do faultless the select statement.

Obviously for endusers not so good to click on an error message "ignore".

Any way to ignore programmaticaly?

Needles to say that incase I change my code into the suggestion as given in the error message the result is still the same error message.

Thanks for advice,

Jockey
 
You'd need to post the code for us to look for issues.

Or use your own error handler.

Brian
 
Mike,

also with the addition of the nofilter clause no difference, btw nofilter ? can't find any reference in the vfp 9.0 help although vfp recognizes this nofilter as a genuine command, will come back with on this in a new thread, after the current problem solved.

Brian,
will reduce and generalize my codinf to the bare minimum still with the error and publish a.s.a.p.

Regards,
Jockey(2)
 
Jockey2,

NOFILTER is not a command, it's a clause in the SELECT statement, if that's what you used to create your first cursor. See this link for the VFP9 reference:


So, if you include it when creating your first cursor, like this:

SELECT ... INTO CURSOR MyCursor NOFILTER

then you, most likely, won't get the message you are getting when you creating your second one:

SELECT ... FROM MyCursor ...

If this doesn't help, please post your code here.

Stella
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top