E
eddy3459
I have a form which contain 2 unbound text boxes and a subform. 1st
text box is where I input client's ID and 2nd textbox is for client's
name. I have set the child and master field for subform to clients ID
on subform and 1st testbox on main form. This works fine if I only
have to search by client's ID.
My problem is how do I make the subform to requery if ,say the client
forget his ID # or search using ID produce no result, and I have to
search by name using 2nd textbox as a search string.
I tried changing the master and child field link using code but that
didn't work...like:
me.subform.Form.MasterField = me.txtbox1
there must be a simpler solution to this but I now I don't have a
clue...
any help on this is very much appreciated....thank you
text box is where I input client's ID and 2nd textbox is for client's
name. I have set the child and master field for subform to clients ID
on subform and 1st testbox on main form. This works fine if I only
have to search by client's ID.
My problem is how do I make the subform to requery if ,say the client
forget his ID # or search using ID produce no result, and I have to
search by name using 2nd textbox as a search string.
I tried changing the master and child field link using code but that
didn't work...like:
me.subform.Form.MasterField = me.txtbox1
there must be a simpler solution to this but I now I don't have a
clue...
any help on this is very much appreciated....thank you