473,387 Members | 3,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

problem with memo field

sir,

in my form textboxes named qst,opt1,opt2,opt3,opt4 are there having control sources(question,option1,option2,option3,option4 which are memo fields) from the tblexam.

if isnull(qst.value) or isnull(opt1.value) or isnull(opt2.value) or isnull(opt3.value) or isnull(opt4.value) then
msgbox "invalid"

If i click modify button in my form and make any question or option null then message box is not coming.It is not taking as null.
for text fields it is taking as null but for memo fileds in the table it is not taking as null though i cleared the question or option filed.
why
please help me
thanks in advance
.
May 11 '07 #1
4 2016
MMcCarthy
14,534 Expert Mod 8TB
Deleting data doesn't necessarily set the textbox to null. Try this ...
Expand|Select|Wrap|Line Numbers
  1. If IsNull(Me!qst) OR Me!qst = "" _
  2.    OR IsNull(Me!opt1) OR Me!opt1 = "" _
  3.    OR IsNull(Me!opt2) OR Me!opt2 = "" _
  4.    OR IsNull(Me!opt3) OR Me!opt3 = "" _
  5.    OR IsNull(Me!opt4) OR Me!opt4 = "" Then
  6.  
  7.    MsgBox "Invalid"
  8.  
  9. End If
  10.  
Mary
May 12 '07 #2
JConsulting
603 Expert 512MB
sir,

in my form textboxes named qst,opt1,opt2,opt3,opt4 are there having control sources(question,option1,option2,option3,option4 which are memo fields) from the tblexam.

if isnull(qst.value) or isnull(opt1.value) or isnull(opt2.value) or isnull(opt3.value) or isnull(opt4.value) then
msgbox "invalid"

If i click modify button in my form and make any question or option null then message box is not coming.It is not taking as null.
for text fields it is taking as null but for memo fileds in the table it is not taking as null though i cleared the question or option filed.
why
please help me
thanks in advance
.
Alternatively
J

Expand|Select|Wrap|Line Numbers
  1. If nz(Me!qst,"") = "" OR nz(Me!opt1,"") = "" OR nz(Me!opt2,"") = "" OR nz(Me!opt3,"") = "" OR nz(Me!opt4,"") = "" Then
  2.    MsgBox "Invalid"
  3. End If
  4.  
May 12 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
Alternatively
J

Expand|Select|Wrap|Line Numbers
  1. If nz(Me!qst,"") = "" OR nz(Me!opt1,"") = "" OR nz(Me!opt2,"") = "" OR nz(Me!opt3,"") = "" OR nz(Me!opt4,"") = "" Then
  2.    MsgBox "Invalid"
  3. End If
  4.  
Doh!

I'm too tired to be doing this tonight. How did I miss that. Thanks J.

Mary
May 12 '07 #4
JConsulting
603 Expert 512MB
Doh!

I'm too tired to be doing this tonight. How did I miss that. Thanks J.

Mary
anytime :)
J
May 12 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: euang | last post by:
Hi, I have been using access 2000 for two years on WINDOWS NT to display dynamic aweb page using ASP My ISP has now changed to Windows 2003, and I am having major problems displaying...
3
by: GorDon | last post by:
Hi, I have a report based on a query. The query grabs a memo field from my main table, yet when I display the memo field in the report it truncates the memo field (the field needs to hold more...
3
by: BlackFireNova | last post by:
I am working on an Access 2002 Database. I created a new table and imported some notes data into it from an existing table. Now, when I try to create a List Box, and it displays the list of...
4
by: Mal | last post by:
I have an ACC 2000 database that has a strange behaviour I have a small table, with just a few fields... My report has very simple grouping and sorting, no code bar a NODATA event. I have a...
3
by: John | last post by:
I have a field, data type Memo, in a job details table. I have a text box on a report which I need to print the contents of this field. My problem is that the text box will only display 255...
2
by: David | last post by:
I have a table which is to hold 70 memo fields to contain notes on data changes to corresponding fields in a form. The problem is I dont want to have to create 70 forms to input notes into. Is it...
4
by: ghadley_00 | last post by:
I have an access database form where I have a button that is supposed to be appending the contents of 1 memo field to another is behaving non-predictably. The code is: Me! = Me! & Chr$(13) &...
9
by: philip | last post by:
If I execute that : Dim Temp as string = "This is a text" Dim sw As StreamWriter Dim fullFileName as string = "c:\text.txt" sw = New StreamWriter(fullFilename) sw.Write(temp) sw.Close() ...
4
by: Mal Reeve | last post by:
Hello, I have a report that has only 2 levels of grouping. The detail section is simply 1 large block for a memo field. I am finding that on some occasions the report errors and generates...
15
by: sara | last post by:
I have a Memo field in a table to hold notes from a conversation a social worker has had with a client (this is for a non-profit). If the user needs to update the memo field, I need to find the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.