Results 1 to 4 of 4
  1. #1
    itm is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2011
    Posts
    69

    Question Trying to find all IDs in a field that start with *

    Hi,
    I am trying to find all IDs in a field that startss with *. I have tryed various forms of using LLeft but it says that the function is undefined. I have names like *CO5468 and I need to find them. I tryed things like Left(tblTemp_Import_File.Accpac__c],1)'*') and Like [*%], but nothing works.
    Any ideas would be really appreciate it.
    Thank you

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Do you have a reference set to "Microsoft DAO 3.6 Object Library"? To check, press Control G (the control key and the letter G), then go to Tools/References.


    In a query, add the table, then in a column, add:
    Expr1: Left(tblTemp_Import_File.Accpac__c],1)
    Then in the criteria row, enter "*"

    If you still can't get it to work, post the SQL of your query.

  3. #3
    itm is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2011
    Posts
    69
    Thanks for the reply,
    I checked I do have it set to "Microsoft DAO 3.6 Object Library" and I am using MS Access 2007
    It givess me "Undefind function Left" error
    Here is the query as it stands now:
    SELECT tblTemp_Import_File.ID, tblTemp_Import_File.Accpac__c, Left([tblTemp_Import_File].[Accpac__c],1) AS Expr1
    FROM tblTemp_Import_File LEFT JOIN tblSF_Accounts ON tblTemp_Import_File.Accpac__c = tblSF_Accounts.Accpac__c
    WHERE (((tblSF_Accounts.Accpac__c) Is Null) AND ((Left([tblTemp_Import_File].[Accpac__c],1))="*"));

    Thank you

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Everything look correct (to me).
    Care to post your dB??? I'll look at it tonight..

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

Similar Threads

  1. Replies: 1
    Last Post: 05-22-2012, 10:46 AM
  2. Find field value Horizontally
    By jgelpi16 in forum Programming
    Replies: 11
    Last Post: 01-24-2011, 04:21 PM
  3. Find specific value in any field
    By bkvisler in forum Queries
    Replies: 8
    Last Post: 12-08-2010, 04:23 PM
  4. Find Maximum Value of a Field and Add 1
    By jhillbrown in forum Forms
    Replies: 3
    Last Post: 03-11-2010, 11:42 AM
  5. Find Spaces in Field
    By stottle in forum Queries
    Replies: 6
    Last Post: 08-17-2009, 02:02 AM

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