Results 1 to 2 of 2
  1. #1
    Viggen66 is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2010
    Posts
    8

    Help in developing a query with possible nul values

    Dear all

    I have already posted another thread, but now I need your help in developing a query.

    I'm developing a database to make control of the inflow of invoices entering the accounting department, but as the size of the database increases, when I want to query for the invoices of a particular vendor, I will get an enormous list of all the historic data of that particular vendor, so the solution was to make access filter the invoices by a certain number of days, in this expression.

    >Date()-[Forms]![Vendor]![Dates Due]

    But the main problem is that [Dates Due] is an input from a text box, and for the query to work I need to always insert a number, or else I will get a nul result.



    Is there a way to fix this, with the use of the iff, like for instance

    If ([Dates Due]=Nothing then ignore this parameter, [Dates Due] equals a number, then insert this number in the query), I’m very used on using Excel, and I don’t know how to do this in Access.

    Thanks

  2. #2
    Viggen66 is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2010
    Posts
    8
    I have already fixed this problem

    I have made a combobox, where I can chose between 30 60 90 120 180 and 365 days, and the default value for that is 30 days.

    So the problem of not entering data is solved.

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

Similar Threads

  1. Replies: 2
    Last Post: 02-22-2010, 04:19 PM
  2. Freeware tools for developing .hlp files?
    By James3mc in forum Programming
    Replies: 3
    Last Post: 11-22-2009, 02:37 AM
  3. Query help for WTD and MTD values.
    By rzawora in forum Queries
    Replies: 1
    Last Post: 10-26-2009, 04:30 AM
  4. Null Values in query
    By LesleaOH in forum Queries
    Replies: 0
    Last Post: 10-19-2009, 04:45 PM
  5. Query multiple values in a field
    By JAYgarti in forum Access
    Replies: 0
    Last Post: 07-09-2009, 09:52 AM

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