You guys know that "LOCATE" without arguments gets you back to BOF faster than Go Top (look it up in Help on Locate)?
Terry
>Hi Alex,
>
>Thanks for the comments,
>The reason why I issue a "go top" is base on my previous codes, I cannot seek records when I issue set order to tag "TAGName" (not in the datasession) without issueing go top.
>Please do correct any unnecessary commands on my code below..
>
>This is coded under valid procedure of my form...
>xcust_id = alltrim(this.value)
>If thisform.txtcust_id.value != " " .and. lastkey() = 13
>set exact on
>Select("ffcust")
>Set order to tag custid
>*Go Top
>Seek(xcust_id)
>If found()
>lget = .f.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.