Mathew, I think this will be because pCustID is a local variable to the INIT event only and is therefore not available to the SET FILTER command after the INIT event has finished.
>Hi All,
>
>Recently, I found that by using the SET FILTER TO command, VFP gave me an error and I don't understand why. Here is the problem.
>
>In the init() of the form, I have the following code...
>LPARAMETERS pCustID
>
>Select Customer
>SET FILTER TO cust_id = pCustID
>
>In the last record navigation button >| I have the following...
>
>SELECT Customer
>IF !EOF()
> Skip 1
>ELSE
> GO BOTTOM
>ENDIF
>
>Everytimes, I clicked more than one on the last record button, VFP said 'pCustID' variable not found. Does anyone knows why? TIA
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.