Results 1 to 5 of 5

Thread: find a record with a variant field which is not null

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2000
    Posts
    138
    Hi, Could anyone tell me, with DAO351, how to find a record with a variant field which is not Null?
    Thanks.
    -- IHailJoe

  2. #2
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Post Explanation required...

    I'm not sure what you mean there 'xmin'.

    Field data types cannot be variant in Access.

    Could you explain further?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2000
    Posts
    138
    I¡¯m sorry, simonm. I made a mistake. That should be a Text field. I have been trying to use the Findfirst method (as follows) to locate a record with that field and failed.

    .FindFirst Not IsNull(!FieldName) ¡®Return: This object doesn¡¯t support such automation
    ¡®Or
    .FindFirst ¡°FieldName <> Null¡±

    Perhaps I just don¡¯t know how to use the method. What should I do?

  4. #4
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Lightbulb Ahhh...

    I see what you are trying to do.

    Yes, you are using the 'FindFirst' method incorrectly.

    Use it like this:

    .FindFirst "[FieldName] IS NOT NULL"

    The criteria parameter of this method is a string that is structured like a WHERE clause of an SQL query.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Sep 2000
    Posts
    138
    Thank you, simonm. I'll try it.

Posting Permissions

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



Click Here to Expand Forum to Full Width