+ Reply to Thread
Results 1 to 2 of 2

Why do my criteria get turned into parameter queries?

  1. #1
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Why do my criteria get turned into parameter queries?

    I am using MSQuery with an SQL Database to filter data into Excel.
    I have a field Transaction_Type which can have values of from "1" to "5" (they are text not numbers)
    I wish only to include only types"1" and "4" in my query, so I use, in the criteria part of MSQuery:-

    Transaction_Type

    ='1' or '4'
    This immediately transforms into a parameter and I am invited to enter a value in the popup window.
    If I surround the values with no quotes or "" I get a Syntax error note.
    How should I write the criterion to get a proper answer?
    I hope this is a proper question for this Forum.
    John

  2. #2
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Manchester England
    MS-Off Ver
    Excel 2010
    Posts
    992

    Re: Why do my criteria get turned into parameter queries?

    I have not got a reaction to my recent posting, is this because it relates to MSQuery?
    If this is the reason, can any one suggest a source of information that may be able to help.
    John

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Coding of parameter date queries
    By j_Southern in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-22-2017, 03:52 PM
  2. Replies: 0
    Last Post: 10-06-2014, 07:35 AM
  3. Replies: 2
    Last Post: 02-18-2014, 08:18 PM
  4. Parameter Queries
    By j_Southern in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-04-2013, 09:59 AM
  5. Parameter queries
    By j_Southern in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-07-2010, 07:08 AM
  6. Replies: 2
    Last Post: 04-10-2006, 10:55 PM
  7. [SOLVED] Where can I learn how to create parameter queries in Excel?
    By Mark in forum Excel General
    Replies: 1
    Last Post: 01-23-2006, 10:31 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1