You're using in the index key function (TTOC()) that can return value of different length. Change it to TTOC(,1) which is specificly designed to be used in indexes. See
Considerations for Creating Index Expressions in VFP9 help or online at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_foxhelp9/html/576a2953-04ff-4a66-9e38-3a3d9c990b72.asp?frame=true>I'm using vfp9.0 with a pre-existing table that has a datetime field. This field is a part of an index (employeeID+ttoc(MydateTime)).
>
>When I insert a record, with buffering 5, it gives me an error that states that it has error creating the index for the asssociated tag.
>
>I run it under vfp6.0/vfp8.0 and it works fine.
>
>Any clue why I'm having this issue with 9.0? Has anyone else had this problem?
>
--sb--