DCrake
Remembered
- Local time
- Today, 12:47
- Joined
- Jun 8, 2005
- Messages
- 8,632
I have a main form subform setup, Mainform unbound subform bound.
I have a txtSearch textbox that is used to create a where condition for the subform.
My Sql is built correctly, as I have tested the results in both a query and a count. The syntax is
Me.SubformName.Form.RecordSource = StrSQL
However it done not refresh the contents. I have tried Requery nothing happens.
The strSQL is something like
Select * From Table Where FieldName Like "*ABC*" Order By FieldName
ABC being the contents of the textbox.
Funny thing is if I enter a wildcard character in the textbox such as * or ? it displays 1 record in the subform.
Anybody any ideas. I have this working in other mdb's with the same syntax.
I have even tried adding a new subform and simplifying the syntax but still not working.
Very Frustrating.
I have a txtSearch textbox that is used to create a where condition for the subform.
My Sql is built correctly, as I have tested the results in both a query and a count. The syntax is
Me.SubformName.Form.RecordSource = StrSQL
However it done not refresh the contents. I have tried Requery nothing happens.
The strSQL is something like
Select * From Table Where FieldName Like "*ABC*" Order By FieldName
ABC being the contents of the textbox.
Funny thing is if I enter a wildcard character in the textbox such as * or ? it displays 1 record in the subform.
Anybody any ideas. I have this working in other mdb's with the same syntax.
I have even tried adding a new subform and simplifying the syntax but still not working.
Very Frustrating.