|
-
Sep 27th, 2000, 06:57 PM
#1
Thread Starter
Addicted Member
Hi, Could anyone tell me, with DAO351, how to find a record with a variant field which is not Null?
Thanks.
-- IHailJoe
-
Sep 28th, 2000, 07:31 AM
#2
Fanatic Member
Explanation required...
I'm not sure what you mean there 'xmin'.
Field data types cannot be variant in Access.
Could you explain further?
-
Sep 28th, 2000, 10:06 AM
#3
Thread Starter
Addicted Member
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?
-
Sep 28th, 2000, 10:48 AM
#4
Fanatic Member
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.
-
Sep 28th, 2000, 11:55 AM
#5
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|