Solved

How to find if there is writing in a memo field?

Posted on 2011-02-18
1
273 Views
Last Modified: 2013-12-25
I know I have a asked before but none of the help worked. So, I figure Maybe I wasn't clear. If I wasn't ,I apologize. My boss needs to know who answered (or wrote on) the field "MEMO". This is a questionaire one of the fields ask a question and you put the answer in a "MEMO" field. I also need to count how many questioned were answered. I used the SQL code I was giving and it did not work. Can I use something like:IIf( [memo] = 0 ,Answered,not answered).

0
Comment
Question by:gigifarrow
1 Comment
 
LVL 22

Accepted Solution

by:
8080_Diver earned 250 total points
ID: 34927071
Try checking the length of the memo field. If the length is zero (0) then thetre is no text in it.  Now, if someone enters some spaces, you could get fooled unless you also TRIM the database's column before checking the length (and, in any case, I would require a minimum of, say, 5 characters before I would call it "Answered" ;-).

 (By the use of the term "memo field", are you working against an Access database?)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now