>I'm currently using VFP 3.0. When I design a Form which contain a ListBox and some CommandButton. In one of the CommandButton I use set filter as follows: > >set filter to = ThisForm.Combo1.Value >Report Form to printer > >All I want to do is to print out an individual's report by client's choice. However, it gives me all the records in the table. I try many different ways, I know the code is fine because it works on my other Form which print an individual report. It has to be something simple but I can't figure it out!! Any help with be appreciate!!
try
set filter to =thisform.combo1.listitem
should work. Value doesn't return the selected value of the combo box until I think you issue a requery. Listitem property is better to use with combo and list boxes.