A
AlexT
Folks
I have a typical Parent / Child data structure that I display in a very
standard form & subform layout. The subform simply displays all the
linked child records in a datasheet view.
Everything works just fine... but I now have the need to filter my
child view.
I have tried to use the filter property but it doesn't seem to
work... so I have resorted to change (via VBA) the subform data source
as needed.
The problem is that I'm not getting the expected results...
If I use the "show all" query it works ok
SELECT * FROM dbo.qChildLines
But whenever I try to add a WHERE clause to limit the output, such as
SELECT * FROM dbo.qChildLines WHERE (NOT (ldNoPolIdx > 1))
No records are displayed, although running the same query "alone"
(not in the form's context) DOES return the expected results.
I'm probably missing something obvious...
Any help welcome
--AlexT
I have a typical Parent / Child data structure that I display in a very
standard form & subform layout. The subform simply displays all the
linked child records in a datasheet view.
Everything works just fine... but I now have the need to filter my
child view.
I have tried to use the filter property but it doesn't seem to
work... so I have resorted to change (via VBA) the subform data source
as needed.
The problem is that I'm not getting the expected results...
If I use the "show all" query it works ok
SELECT * FROM dbo.qChildLines
But whenever I try to add a WHERE clause to limit the output, such as
SELECT * FROM dbo.qChildLines WHERE (NOT (ldNoPolIdx > 1))
No records are displayed, although running the same query "alone"
(not in the form's context) DOES return the expected results.
I'm probably missing something obvious...
Any help welcome
--AlexT