Thanks for the reply. The problem was the 'Set Near" setting. As described in "Hackers Guide to Visual FoxPro 6.0" by Tamor Granor and Ted Roche, I included the Config.fpw file in the Project (Other, Text Files) and all now works.
Denis
>Check that you have defined all SET-commands in your code that could affect ordering of fields (COLLATE, DATE) and that they match with your CONFIG.FPW. I had a lot of weird behavior in runtime environment before I noticed that the settings in CONFIG.FPW don't translate into EXEs.
>
>JS
>
>>I am using VFP 5.0a. I have a table indexed on a Datetime field type.
>>There are multiple records with the same date, but different times, and I want to position on the first record for a particular date.
>>
>>The problem is that the code works perfectly while running within VFP, but the seek leaves me at EOF() when I build and run within an EXE.
>>
Dennis Schuette