Results 1 to 2 of 2
  1. #1
    shexe is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Aug 2010
    Posts
    71

    WHERE clause - Longshot

    So I know this is an access forum, but I am pulling my hair out over an issue I am having with a WHERE clause in Excel...



    I have a query in Access the uses WHERE ((([IT_Staff_Allocation_2010].ResourceName) Like "TBD *")) and it works just fine in access. When I attempt to link the query into Excel via Connection Properties I do not receive any results. After some trouble shooting I have determined that EXCEL does not like the Like "TBD*")) portion of the clause as it will work if I enter a known value (ex: lastname, firstname). EXCEL dislikes this so much that it wont call anything over even if I am calling the query as a table.

    Is anyone aware of a different way to select records that begin with TBD?

  2. #2
    shexe is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Aug 2010
    Posts
    71
    ...and I just realized I can use LEFT function. For anyone interested the below WHERE clause works.

    WHERE LEFT([IT_Staff_Allocation_2010].ResourceName,3) Like "TBD"

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

Similar Threads

  1. Where clause syntax
    By stupesek in forum Reports
    Replies: 7
    Last Post: 09-03-2010, 02:26 PM
  2. update in where clause
    By mikensu in forum Access
    Replies: 0
    Last Post: 03-16-2009, 07:19 AM
  3. FROM Clause error message
    By skylite in forum Queries
    Replies: 2
    Last Post: 10-23-2008, 05:47 AM
  4. IIF clause
    By Peljo in forum Queries
    Replies: 2
    Last Post: 02-05-2008, 11:22 AM
  5. Help on WHERE clause
    By QBCM in forum Programming
    Replies: 1
    Last Post: 12-19-2005, 08:43 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