I created a form Contains a text box to search in name field
and two radio buttons , One to search at the beginning of the Name field and the other to search at any part of the field
I also created a button to open the search query and I wrote IIF statement as
IIf([Forms]![form name]![radio button name].[OptionValue]= -1 ;([table name].[name field]) Like "*" & [Forms]![form name]![text box name] & "*";([table name].[name field]) Like [Forms]![form name]![text box name] & "*")
but it not work correctly , Where error in IIF statement
and what The best way to create this form
I am new to access. Please help