Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    kroenc17 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Sep 2010
    Location
    Albany, NY
    Posts
    49
    I lol'd. So, naturally now that I've finished this - I need to add another query criteria. Now the form also needs to have a date selector so, if desired, the report (which as a refresher shows weekly updates for ongoing projects) will only show entries from within a chosen time span. I've got my two text boxes, short date, show calendar all set up, I just don't know how to criteria-ize this within my query. The field it should filter is from "Date entered" in the "Weekly Status Call" table already in the query. I've tried a few ways but I don't know how to properly syntax it.

    Something like:


    [Forms]![NameOfForm]![Text19, 17]

    I just don't know how to code it right. The two text boxes are Text19 and Text17.

    Text17 is date from, and Text19 is date to.

    Thanks again lol

  2. #17
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    It would look like:

    Between [Forms]![NameOfForm]![Text17] And [Forms]![NameOfForm]![Text19]
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #18
    kroenc17 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Sep 2010
    Location
    Albany, NY
    Posts
    49
    Works..thanks, I figured there was an operator such as between that I was looking for just didn't know where to go. Was hoping I wouldn't need to make integers subtract 19-17 to get a integer date range and then plug that in there somewhere.. bla bla bla, I should probably be buying you lunch over paypal at this point. If I leave the fields blank then I get no data on my report - any way around this without adding a default value of Jan. 1 1900 for from and today as to? thanks again!

  4. #19
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    My step-daughter lives in NYC; I'll send her over for lunch.

    Try this untested method:

    Between Nz([Forms]![NameOfForm]![Text17], #1/1/1900#) And Nz([Forms]![NameOfForm]![Text19], #12/31/29#)
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #20
    kroenc17 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Sep 2010
    Location
    Albany, NY
    Posts
    49
    Thanks again - untested method a success first try.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Form using requerys and report generating
    By kroenc17 in forum Forms
    Replies: 1
    Last Post: 09-22-2010, 07:12 AM
  2. Generating Report from Form
    By mwabbe in forum Reports
    Replies: 8
    Last Post: 08-30-2010, 12:25 PM
  3. Replies: 6
    Last Post: 07-19-2010, 10:57 AM
  4. noob prob, generating next report
    By flash319 in forum Reports
    Replies: 2
    Last Post: 08-04-2008, 03:10 PM
  5. generating random numbers on form
    By anitra in forum Forms
    Replies: 1
    Last Post: 02-14-2006, 10:08 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