D
deodev
I have two text boxes on a form - txttkpr and txtmatter
I woul like a query to use the data from these two text boxes as criteria.
the query should return data based on any combination of the data in the
text boxes
that is
txttkpr txtmatter
* *
1025 *
* 02356
1025 01256
I am having a proble with the where statement
where (((FINALMATTEREXCEPTION.mbillaty) Like
(IIf(([Forms]![frmFormQuery].[txttkpr].[text])="*","*",IIf(([Forms]![frmFormQuery].[txttkpr].[text])="","*",([Forms]![frmFormQuery].[txttkpr].[text]))))))
OR (((FINALMATTEREXCEPTION.mrmatter) Like
(IIf(([Forms]![frmFormQuery].[txtmatter].[text])="","*",IIf(([Forms]![frmFormQuery].[txtmatter].[text])="*","*",([Forms]![frmFormQuery].[txtmatter].[text]))))))
thanks
I woul like a query to use the data from these two text boxes as criteria.
the query should return data based on any combination of the data in the
text boxes
that is
txttkpr txtmatter
* *
1025 *
* 02356
1025 01256
I am having a proble with the where statement
where (((FINALMATTEREXCEPTION.mbillaty) Like
(IIf(([Forms]![frmFormQuery].[txttkpr].[text])="*","*",IIf(([Forms]![frmFormQuery].[txttkpr].[text])="","*",([Forms]![frmFormQuery].[txttkpr].[text]))))))
OR (((FINALMATTEREXCEPTION.mrmatter) Like
(IIf(([Forms]![frmFormQuery].[txtmatter].[text])="","*",IIf(([Forms]![frmFormQuery].[txtmatter].[text])="*","*",([Forms]![frmFormQuery].[txtmatter].[text]))))))
thanks