I have design a form and subform where the records being listed in the subform depends on the "product code" field in the main form. I do not use link field because it is allowed to input wild character in the "product code" field. e.g. product code ="*", then display all the products, product code="A*", it display all the products starting with "A". So I design a query in record source field of the subform "select * from product where prod_code like forms![parent form]![prod_code]". Every time the user click or input the "product code" in the main form, the subform will be refresh by command "requery".
Under my design, it works fine to input "A*" in "product code" field in main form when it is the first time to run the program. BUT after I input the exact product code e.g. "ABC-1"(it will show one record), later I input "A*" , NO records are displayed in the subform. If I input "*", it can still display all records. But I can not use "A*" or "AB*" anymore except I input the full product code, "*" or restart the program.
Is there some problem on my query define in record source of the subform?
Under my design, it works fine to input "A*" in "product code" field in main form when it is the first time to run the program. BUT after I input the exact product code e.g. "ABC-1"(it will show one record), later I input "A*" , NO records are displayed in the subform. If I input "*", it can still display all records. But I can not use "A*" or "AB*" anymore except I input the full product code, "*" or restart the program.
Is there some problem on my query define in record source of the subform?