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

Lost end-of-file On Sybase table when accessed thru sql statement

Status
Not open for further replies.

goldi

Programmer
Mar 21, 2001
31
US
I am using VB6 with a sybase database. When I open a table using an SQL statement containing a "Where" clause I seem to lose the End-Of-File marker.

I can use MOVEFIRST, MOVENEXT, and MOVEPREVIOUS (if I haven't reached the end of file), but I cannot use MOVELAST (I get a BOF,EOF error). If I reach end-of-file (using MOVENEXT), the program recognizes that it is end-of-file, but if I then try to do a MOVEPREVIOUS to put the cursor back on the last record I get a BOF, EOF error. If I then do another MOVENEXT I find myself at the beginning of the file again. So, it's looping, but I want to be able to find the end-of-file and use the MOVELAST command.

Anyone have any suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top