Results 1 to 5 of 5
  1. #1
    bibbyd01 is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2009
    Posts
    7

    Using > with an inoutbox

    Hi All



    I think this might be the easiest question all year

    I have a query where I want to select all data over a certain amount of days, so I used >30 on the query.

    I want to change it to give the user a choice, so in the query I now have =[insert days] to give the popup box but I can't get it to work with the >. What rediculously easy thing am I missing?

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    Try this in your criteria row for the date field:
    Code:
    >DateAdd("d",[Enter # of Days],Date())
    I entered -30 and got back only records with a date more recent [greater] than 30 days ago.

    Hope this helps!

  3. #3
    bibbyd01 is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2009
    Posts
    7
    Hi

    This works but I guess I didn't explain myself too much

    The days isn't based on a date, but an integar. So the days are just entered in

  4. #4
    bibbyd01 is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2009
    Posts
    7
    Just figured this out

    I used

    >([Enter # of Days])

  5. #5
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    Glad you were able to figure it out!! Mark the post 'Solved' [in 'Thread Tools' up top] if your question has been solved.
    All the best!!

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

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