Results 1 to 4 of 4
  1. #1
    accessLearn is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Jul 2015
    Posts
    11

    How to use parameters in a query which is using parametrized query as a source

    I have an access query Qry1 that needs to run quarterly.


    The begin and end dates are hardcoded. Another crosstab query is using Qry1 as a source.
    When I try to change the dates as parameters using [BeginDate] and [End Date] for dates, It works in QryA but I encounter the error as “Microsoft Jet database does not recognize [BeginDate] as a valid field name or expression.

    How can I fix that?

    Thank you,
    Blyzz

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Paul, that link seems to just go to MS Support search page.

    Here is another reference http://allenbrowne.com/ser-67.html#Param
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Hmm, looks like they've taken it down. I've deleted the shortcut so I don't post it anymore.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Parameters in a query?
    By Carol Geddes in forum Queries
    Replies: 5
    Last Post: 11-05-2013, 05:00 PM
  2. UPDATE Query Too Few Parameters
    By Monterey_Manzer in forum Queries
    Replies: 2
    Last Post: 09-05-2013, 02:09 PM
  3. parametrized Queries
    By blacksaibot in forum Programming
    Replies: 1
    Last Post: 05-16-2012, 04:24 PM
  4. query help with parameters
    By Madmax in forum Access
    Replies: 2
    Last Post: 03-05-2012, 03:07 PM
  5. Replies: 3
    Last Post: 07-01-2010, 07:55 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