Results 1 to 2 of 2
  1. #1
    Whizbang is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    37

    DLOOKUP where TEXTFIELD > SEARCHSTRING

    I would like to compare two string values in a DLOOKUP to find a record where the text in the field is greater than the SearchString entered (eg "XYZ" is greater than "ABC").

    If I just do a simple string comparison in a textbox with Control Source of ="XYZ" > "ABC" it returns -1 (or TRUE). But when I try the same in a DLOOKUP, I get an error. I assume this is because DLOOKUP does not allow for string comparisons in this way.

    So, how would I lookup that finds the first text value greater than another text value?

  2. #2
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Your statement is a bit confusing. First off post an example of the field in question. And post the purpose of this exercise. What is it you are really trying to do? I know you have stated something but it doesn't explain fully.

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

Similar Threads

  1. Replies: 1
    Last Post: 12-18-2011, 01:09 AM
  2. Replies: 1
    Last Post: 11-10-2011, 06:44 PM
  3. Help with DLookUp
    By focosi in forum Forms
    Replies: 10
    Last Post: 08-08-2011, 07:53 AM
  4. Is DLookUp What I should be using?
    By cameronaziz in forum Forms
    Replies: 2
    Last Post: 03-24-2011, 04:29 PM
  5. Replies: 0
    Last Post: 09-21-2008, 11:28 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