Results 1 to 7 of 7
  1. #1
    number6car is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Location
    San Antonio, TX
    Posts
    7

    Simple Query Question

    How do you formulate a query for "south" without getting returns "south" and "southeast"?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Maybe:

    SELECT * FROM table WHERE fieldname="south";
    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.

  3. #3
    number6car is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Location
    San Antonio, TX
    Posts
    7
    Sorry, I forgot to mention it's from a dropdown list [<option><%=FP_FieldHTML(fp_rs,"TournamentName")% ></option>] and tournament names "xxx south" and "xxx southeast" exist. If you select "xxx south" the results include "xxx south" and "xxx southeast", or of course "xxx north" produces "xxx north" and "xxx northeast" and I'd imagine "xxx northwest" if or when it exists in the table.

  4. #4
    number6car is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Location
    San Antonio, TX
    Posts
    7
    This is probably a VBScript question more than an Access question...

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Where is this code: [<option><%=FP_FieldHTML(fp_rs,"TournamentName")% ></option>]

    Why would this be a VBScript question?

    Maybe you should tell exactly what you are doing.
    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.

  6. #6
    number6car is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Location
    San Antonio, TX
    Posts
    7
    See http://tournamenttime.net/Tournaments.asp. If you select a tournament name with south, it will show both south and southeast. If you select southeast it will only display southeast.

  7. #7
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    I don't know much web coding. I certainly don't know how that web page pulls data from Access db. If you need a query analyzed then provide the SQL statement.
    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.

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

Similar Threads

  1. Simple Query Question - (I hope)
    By cvansickle in forum Access
    Replies: 1
    Last Post: 09-02-2013, 09:22 PM
  2. Simple? Query Question
    By Stacy in forum Queries
    Replies: 6
    Last Post: 03-28-2011, 04:07 PM
  3. Simple query Question, please Help
    By iamraja5 in forum Forms
    Replies: 1
    Last Post: 03-16-2010, 05:04 AM
  4. Simple question
    By KenM in forum Queries
    Replies: 1
    Last Post: 11-10-2009, 03:32 PM
  5. Should be simple Query Question
    By brj1 in forum Queries
    Replies: 2
    Last Post: 03-04-2006, 01:11 PM

Tags for this Thread

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