Hi Bob,
What is probably happening is the filter is being evaluated outside the scope of the form environment.
If you need the filter condition to be dynamic, you might try setting a variable to the spinner value and then setting the filter based on the variable:
lcvalue = THISFORM.Spinner1.Value
set filter to somefield = lcvalue
VFP will immediately evaluate lcvalue and the filter condition will look like somefield = 12 (for example). In the Valid event of the spinner, you can put code to reset the filter once the value has changed.
HTH,
Larry
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao