iif function for searching in record and view in report page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • john aso
    New Member
    • Oct 2013
    • 1

    iif function for searching in record and view in report page

    i have a code i need it but i think its bad i ned to joien specific record to a report page for searching data
    this code i right it in query criteria under the field i want to see in the report page



    Code:
    (IIf(IsNull([froms].[frmempSearch].[datefrom]),"MaxOfExpireDate",([qryLastResidancy].[MaxOfExpireDate])=[froms].[frmempSearch].[datefrom] And ([qryLastResidancy].[MaxOfExpireDate])=[froms].[frmempSearch].[dateto]))


    thanks.
    Last edited by zmbd; Oct 3 '13, 03:43 PM. Reason: [Z{Please use the [CODE/] button to format posted code/html/sql - Please read the FAQ}]
  • jimatqsi
    Moderator Top Contributor
    • Oct 2006
    • 1293

    #2
    You have [froms] several times. It should be [Forms].

    Jim

    Comment

    Working...