darbid
09-01-2008, 10:53 PM
I have inherited a DB and forms from my boss. (his baby)
It has one form populated with textboxes and comboboxes (about 10 in total - we are not talking huge here) which all have a control source being something from the table of the DB.
For Filtering
Up until now he has used the "Filter by Form" and then "Filter" buttons from the menu bar.
The same form is also used to add a new record. :mad:
He now wants the menu bar to dissappear and all functions to be contained on the ONE form.
So this form has to filter and be able to add new records.
So i have found things like this
http://www.access-programmers.co.uk/forums/showthread.php?t=152276&highlight=filter+form
Which uses unbound controls in order to add something to a query.
So what I thought I would do is simply allow two "modes" on this form
The form opens with bound controls. But then have a button "Search Mode"
Search "Mode" with VBA code would for each control:
Me.NameofControl.ControlSource = ""
Then I would be able to use something like the example above.
Am I heading in the right direction or should I do this another way?
It has one form populated with textboxes and comboboxes (about 10 in total - we are not talking huge here) which all have a control source being something from the table of the DB.
For Filtering
Up until now he has used the "Filter by Form" and then "Filter" buttons from the menu bar.
The same form is also used to add a new record. :mad:
He now wants the menu bar to dissappear and all functions to be contained on the ONE form.
So this form has to filter and be able to add new records.
So i have found things like this
http://www.access-programmers.co.uk/forums/showthread.php?t=152276&highlight=filter+form
Which uses unbound controls in order to add something to a query.
So what I thought I would do is simply allow two "modes" on this form
The form opens with bound controls. But then have a button "Search Mode"
Search "Mode" with VBA code would for each control:
Me.NameofControl.ControlSource = ""
Then I would be able to use something like the example above.
Am I heading in the right direction or should I do this another way?