Results 1 to 3 of 3
  1. #1
    masoud_sedighy is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Dec 2011
    Posts
    78

    filter problem

    Hello

    I like to filter my form based on data is available in control source of unbound text box.


    So in my form I have some fields like:

    Id
    Date
    Title
    Start date
    Due date
    Overdue

    For filtering other fields (bound text box) there is no problem. But for overdue field (unbound) I have problem.




    Expression of control source overdue text box is: IIf(Int([Due Date])<Int(Date()),"Overdue")

    Part of macro expression for search button click is: [TempVars]![strFilter] & " OR ([overdue] Like ""*" & [TempVars]![strSearch] & "*"")"

    Now when I click search button I received message “enter parameter value”

    Best regards.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    What is the purpose of this?
    Expression of control source overdue text box is: IIf(Int([Due Date])<Int(Date()),"Overdue")
    Are you trying to see if the record is Overdue?

    Such is the DueDate < today's Date?

    Iif (Datediff("d",Date(),[Due Date])< 0 ,"OverDue")

    Just a comment on field names - You should avoid spaces and special characters in field names.

  3. #3
    masoud_sedighy is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Dec 2011
    Posts
    78
    thanks.
    i made query and used expression property of unbound text box in that (new field). so i used record source of my form with this query, now i could filter my form.

    best regards.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Filter problem on a repot
    By Polarbilly in forum Reports
    Replies: 4
    Last Post: 07-19-2011, 01:37 PM
  2. Filter problem
    By Callahan in forum Forms
    Replies: 0
    Last Post: 07-06-2011, 08:03 AM
  3. Filter problem
    By Javad in forum Access
    Replies: 0
    Last Post: 01-22-2011, 01:48 PM
  4. Multiple filter problem.
    By ducecoop in forum Access
    Replies: 2
    Last Post: 10-28-2010, 11:14 AM
  5. Report Filter Problem
    By Imgsolutions in forum Access
    Replies: 2
    Last Post: 07-07-2010, 02:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums