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
.
4 2016
Deleting data doesn't necessarily set the textbox to null. Try this ... -
If IsNull(Me!qst) OR Me!qst = "" _
-
OR IsNull(Me!opt1) OR Me!opt1 = "" _
-
OR IsNull(Me!opt2) OR Me!opt2 = "" _
-
OR IsNull(Me!opt3) OR Me!opt3 = "" _
-
OR IsNull(Me!opt4) OR Me!opt4 = "" Then
-
-
MsgBox "Invalid"
-
-
End If
-
Mary
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 -
If nz(Me!qst,"") = "" OR nz(Me!opt1,"") = "" OR nz(Me!opt2,"") = "" OR nz(Me!opt3,"") = "" OR nz(Me!opt4,"") = "" Then
-
MsgBox "Invalid"
-
End If
-
Alternatively
J -
If nz(Me!qst,"") = "" OR nz(Me!opt1,"") = "" OR nz(Me!opt2,"") = "" OR nz(Me!opt3,"") = "" OR nz(Me!opt4,"") = "" Then
-
MsgBox "Invalid"
-
End If
-
Doh!
I'm too tired to be doing this tonight. How did I miss that. Thanks J.
Mary
Doh!
I'm too tired to be doing this tonight. How did I miss that. Thanks J.
Mary
anytime :)
J
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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) &...
|
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()
...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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...
| |