Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking for "No data" in a memo field

Status
Not open for further replies.

BrazilTechie

Programmer
Nov 13, 2002
88
BR
Hi guys:

I am trying to run a query to filter records in which a memo field has no data.

Can someone help me here? I have tried to use IsNull and memofield = "" or " " but it's not working.
Am I missing something?

Thanks in advance.
 
Hi,
Did you set the criteria line for the memo field to IsNull?
HTH, [pc2]
Randy Smith
California Teachers Association
 
If you want to include records with no data in the Memo Field use a criteia line like this:
Is Null

The reverse to exclude the records with no data in the Memo field:
Not Is Null

Now this is assuming that you have not set up your table with a default value of a space or empty string or something like that. You tables memo field should have a default value of Null.
Bob Scriver
 
Hi all:

I got it! I was using IsNull in the criteria instead of
Is Null plus I made the field default is Null as per ScriverB.

Thanks to all
 
Does the query have other fields being selected besides the Memo field column? The code is correct. The problem lies with your data. Do some checking on the data. Find a record and put your cursor in the memofield and see if you can backspace a space out. Bob Scriver
 
We crossed postings. Glad to see that you got it to work. Bob Scriver
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top