Results 1 to 4 of 4
  1. #1
    seb is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    73

    How many parameters can I use in a Query

    Hello
    I have a relational database in Access 2003. Now Im trying to write a parameter query using four tables(tblReference, tblCounty, tblWords, tblWeb). The first two parameters belongs to tblArts.
    The first parameter is: Between [Forms]![FSearch].[txtStart] And [Forms].[FSearch].[txtEnd]
    The second parameter is: Like [Forms].[FSearch].[txtName] & "*"
    The Third Parameter is:Like [Forms].[FSearch].[txtCity] & "*"
    The fourth Parameter is Like [Forms].[FSearch].[txtWord] & "*"
    I also have in the query three more fields (with no parameters) two from tblArts and one from tblWeb

    When I run the query there is no records, however, If I delete the first parameter the Query works.How many parameters can I use in a Query with four related (1 to many) tables?



    Could you help me to fix my problem?

    Many thanks

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    there is no practical limit to parameters.

    and there is no mis-function of the software.

    one will learn the hard way that queries are never ever wrong - - one may not understand the results they present - - but they are never wrong....

    multiple AND OR parameters can get mind bendingly confusing....so do it step by step....

  3. #3
    seb is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    73
    NTC
    It s good to hear that there is no practical limit to parameters. I'll do each parameter step by step.

    Than you very much

  4. #4
    seb is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    73
    After careful writing the parameters, now my Query is Working.

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

Similar Threads

  1. Split a string for use as query parameters.
    By Hobbes29 in forum Forms
    Replies: 3
    Last Post: 06-27-2010, 04:39 PM
  2. Query NOT taking the two parameters WHY?
    By iamraja5 in forum Forms
    Replies: 7
    Last Post: 03-16-2010, 04:29 AM
  3. Parameters of all fields
    By seen123 in forum Import/Export Data
    Replies: 1
    Last Post: 02-20-2009, 02:50 PM
  4. Add query parameters in with vbCode?
    By ~SwAmPdOnKeY~ in forum Programming
    Replies: 0
    Last Post: 08-07-2008, 07:58 PM
  5. Replies: 0
    Last Post: 02-15-2007, 03:07 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