Hi, Cecil
I think you need to have a key word after INTO, like Cursor, Array, or DBF, at least that is what it shows in my help files for VFP6 sp5.
>What is wrong with the following code?
>(There is already a "WITH THISFORM" preceding this code.)
>
>SELECT COUNT(*) AS nCount ;
> FROM ;
> LOADING ;
> WHERE ;
> LOADING.Order = .txtcOriginalOrderNumber.Value AND ;
> Loading.Line = .txtcLineNumber.Value ;
> INTO tmpLineNumberCount
>