I am not used to using bound controls, but I am helping another group add search to their database, so I am not sure what to do with this.
I have a database with a tab control in the main form, and two of the tabs are "search" and "edit project." I have a bunch of unbound controls in the search tab with a command button that creates a query used to open a recordset in the edit project tab, which is full of bound controls.
The query works fine, and I can make the sub open fine by itself when I take it out of the main form tabs and make it its own form, but how do I refer to it if it is a subform in the tabs?
I can't get docmd.openform to work, probably because the form is technically already open in the other tab, so how do I take the results of the search tab query and switch over to the edit tab and populate it with the results? I tried docmd.applyfilter after I set focus to the subform, but that did not work. The edit tab subform is just a simple form with bound controls and the navigation buttons.
I tried searching, but could not find an answer to this particular problem. Any help would be greatly appreciated.
I have a database with a tab control in the main form, and two of the tabs are "search" and "edit project." I have a bunch of unbound controls in the search tab with a command button that creates a query used to open a recordset in the edit project tab, which is full of bound controls.
The query works fine, and I can make the sub open fine by itself when I take it out of the main form tabs and make it its own form, but how do I refer to it if it is a subform in the tabs?
I can't get docmd.openform to work, probably because the form is technically already open in the other tab, so how do I take the results of the search tab query and switch over to the edit tab and populate it with the results? I tried docmd.applyfilter after I set focus to the subform, but that did not work. The edit tab subform is just a simple form with bound controls and the navigation buttons.
I tried searching, but could not find an answer to this particular problem. Any help would be greatly appreciated.