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

Simple question...

Status
Not open for further replies.

hudhwk

Programmer
Jan 28, 2003
80
MX
Hi guys,

I have a very simple question, but of it's simplicty becomes a weird one.

How do you capture an EOF() with a GO command?

I mean, I HAVE to do a GO but I want to avoid the EOF() adn be able to inform the user that the record doesn't exist.

Any idea?

Thanks a lot in advance!

Sincerely,
Daniel Buentello
"Here comes the hawk!
 
Hudhwk,

Is this what you're looking for?

Code:
SELECT MyTable
IF BETWEEN(lnMyRec, 1, RECCOUNT())
   GO lnMyRec
ELSE
   MESSAGEBOX("Not in Range")
ENDIF

Andy
 
Yes!!!

Thanks a lot, never heard of BETWEEN command, but it works just perfect.

Thanks a lot again.

See ya.

Daniel.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top