Ok, I have a strange problem with subforms...
Table = tblWork
Main Form = frmNewSearch
Subform = sbfrmNewSearch
Subform Object in Main Form = sbfrmNewSearch
In frmNewSearch I have 3 text boxes and a command button.
The command button has some VB code attached to it that creates a query called "Dynamic_Query" and searches the tblWork based on the criteria entered into the 3 text boxes. The command button/query works perfectly and pulls the correct data.
The problem is, the subform (sbfrmNewSearch) wont pull the data when accessed from the Main form (frmNewSearch)
However, if I directly open the subform (sbfrmNewSearch) it does pull the data from the query as it should.
I have tried adding a command button to cause the subform to requery, but it does not do anything.
Any suggestions on what I might be doing wrong with this thing?
thanks.
Table = tblWork
Main Form = frmNewSearch
Subform = sbfrmNewSearch
Subform Object in Main Form = sbfrmNewSearch
In frmNewSearch I have 3 text boxes and a command button.
The command button has some VB code attached to it that creates a query called "Dynamic_Query" and searches the tblWork based on the criteria entered into the 3 text boxes. The command button/query works perfectly and pulls the correct data.
The problem is, the subform (sbfrmNewSearch) wont pull the data when accessed from the Main form (frmNewSearch)
However, if I directly open the subform (sbfrmNewSearch) it does pull the data from the query as it should.
I have tried adding a command button to cause the subform to requery, but it does not do anything.
Any suggestions on what I might be doing wrong with this thing?
thanks.