stanmurphy
Technical User
- Oct 14, 2000
- 89
Hello Everyone,
I have a form with 1 text box and 1 combobox. The combobox RowSource is set to a clientfile. I want to enter an initial into the text box and then set a filter on the clientfile so it only displays last names starting with that initial when I click on the ComboBox. I've placed the code below everywhere I can think of but I keep getting the error: "THISFORM Can Only Be Used Within A Method". I've changed the code to refer to the Form name, but then I get an error say it can't find the form.
SELECT Clientfile
SET FILTER TO SUBSTR(Clientfile.Clientlast,1,1) = THISFORM.TEXT1.VALUE
GO TOP
Can someone tell me how to do this properly before I go completely insane
)
Thanks
I have a form with 1 text box and 1 combobox. The combobox RowSource is set to a clientfile. I want to enter an initial into the text box and then set a filter on the clientfile so it only displays last names starting with that initial when I click on the ComboBox. I've placed the code below everywhere I can think of but I keep getting the error: "THISFORM Can Only Be Used Within A Method". I've changed the code to refer to the Form name, but then I get an error say it can't find the form.
SELECT Clientfile
SET FILTER TO SUBSTR(Clientfile.Clientlast,1,1) = THISFORM.TEXT1.VALUE
GO TOP
Can someone tell me how to do this properly before I go completely insane
Thanks