Hi,
I have a search form, which is now unbound from my table, and by that I mean I have gone and set the form's Record Source to remain blank. I have also gone and set the Control Source of each text box and combo box to also remain blank.
I did this because when I would search for a record by a particular field, by Document Number for example, the data I typed into the text box, or selected in the combo box, would then be stored as a new record in my table, which I did not want.
So, by doing this my Search button no longer works.
Now, do I need to write a VBA code consisting of information that will let me search by each field? For instance, in my code do I need to include information that will let me search by the Document Number, and/or File Type, and/or Revision, and/or Project, and/or Manufacturer, and so forth?
I have been searching all day for example VBA codes for searching, but have not been successful.
Thank you for any input.
I have a search form, which is now unbound from my table, and by that I mean I have gone and set the form's Record Source to remain blank. I have also gone and set the Control Source of each text box and combo box to also remain blank.
I did this because when I would search for a record by a particular field, by Document Number for example, the data I typed into the text box, or selected in the combo box, would then be stored as a new record in my table, which I did not want.
So, by doing this my Search button no longer works.
Now, do I need to write a VBA code consisting of information that will let me search by each field? For instance, in my code do I need to include information that will let me search by the Document Number, and/or File Type, and/or Revision, and/or Project, and/or Manufacturer, and so forth?
I have been searching all day for example VBA codes for searching, but have not been successful.
Thank you for any input.
Comment