473,385 Members | 2,013 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,385 software developers and data experts.

Nulls driving me nuts..

kev
Hi folks,

1)I have created a search query by ID which returns results like below:
EquipmentID, name,location, building, status1, status2,status3
0010 , roller, malacca, 8,
pending/approved,pending/approved,pending/approved

Now my problem is at times, there will be blank values for
status1,status2,status3 in which i was trying to search if it is null
and then replace it with a string "Not Applicable".

I have tried various ways like = Nz(Status1, "No such records") or
=IIf(IsNull([Status1]),"No such records", [RequestStatus]) in the
criteria portion of the query design yet it does not yield the results
that i need.

What am i doing wrong?Can anyone please help out with this.

2)i have posted a query earlier on how to set a tabbed page invisible
if the txtIssue is empty. i received a code on it from King Ron as
below but it does not give the desired output.
Private Sub frmMyForm_OnCurrent()
If (IsNull(Me.txtIssue) = True) then
Me.tabMain.pgLevel1Punchlist.Visible = False
Else
Me.tabMain.pgLevel1Punchlist.Visible = True
End If
End Sub

can anyone tell me why, perhaps another suggestion?

Thanks again, hoping for a quick response. when replying, please bear
in mind that i am a newbie, detailed instructions will be very much
welcomed.

Jan 16 '07 #1
2 1136
kev wrote:
Hi folks,

1)I have created a search query by ID which returns results like
below: EquipmentID, name,location, building, status1, status2,status3
0010 , roller, malacca, 8,
pending/approved,pending/approved,pending/approved

Now my problem is at times, there will be blank values for
status1,status2,status3 in which i was trying to search if it is null
and then replace it with a string "Not Applicable".

I have tried various ways like = Nz(Status1, "No such records") or
=IIf(IsNull([Status1]),"No such records", [RequestStatus]) in the
criteria portion of the query design yet it does not yield the results
that i need.

What am i doing wrong?Can anyone please help out with this.
The Nz() or IIf() would be used in FIELDS of the query, not in the criteria.
2)i have posted a query earlier on how to set a tabbed page invisible
if the txtIssue is empty. i received a code on it from King Ron as
below but it does not give the desired output.
Private Sub frmMyForm_OnCurrent()
If (IsNull(Me.txtIssue) = True) then
Me.tabMain.pgLevel1Punchlist.Visible = False
Else
Me.tabMain.pgLevel1Punchlist.Visible = True
End If
End Sub

can anyone tell me why, perhaps another suggestion?
Try...

Me.tabMain.pages("pgLevel1Punchlist").Visible = False

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Jan 16 '07 #2
kev
Hi Rick,

Both worked like a charm. Thanks you are d best!!!

Rick Brandt wrote:
kev wrote:
Hi folks,

1)I have created a search query by ID which returns results like
below: EquipmentID, name,location, building, status1, status2,status3
0010 , roller, malacca, 8,
pending/approved,pending/approved,pending/approved

Now my problem is at times, there will be blank values for
status1,status2,status3 in which i was trying to search if it is null
and then replace it with a string "Not Applicable".

I have tried various ways like = Nz(Status1, "No such records") or
=IIf(IsNull([Status1]),"No such records", [RequestStatus]) in the
criteria portion of the query design yet it does not yield the results
that i need.

What am i doing wrong?Can anyone please help out with this.

The Nz() or IIf() would be used in FIELDS of the query, not in the criteria.
2)i have posted a query earlier on how to set a tabbed page invisible
if the txtIssue is empty. i received a code on it from King Ron as
below but it does not give the desired output.
Private Sub frmMyForm_OnCurrent()
If (IsNull(Me.txtIssue) = True) then
Me.tabMain.pgLevel1Punchlist.Visible = False
Else
Me.tabMain.pgLevel1Punchlist.Visible = True
End If
End Sub

can anyone tell me why, perhaps another suggestion?

Try...

Me.tabMain.pages("pgLevel1Punchlist").Visible = False

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Jan 16 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Keiron Waites | last post by:
Please see the problem in action here: http://www.leadbullet.biz/contact.php If you mouse over the fields, you will see that text is shown on the right. The text makes the other fields move when...
12
by: Marty | last post by:
It seems all of the sudden that user controls that contain images are referencing image sources relative to the document that I drop the control on. This obviously does not work beacuase the...
0
by: Simon Harris | last post by:
Ok, this really is driving me nuts!!! :( 'All' I am trying to do is get the value of a named element. My XML doc is: <?xml version="1.0" encoding="utf-16" standalone="yes" ?> - <Page>...
2
by: ipmccun | last post by:
Hello all: Perhaps someone can shed some light on this: I'm trying to create a situation, while debugging, where a long running request (sleeps for 15s) and a short running request execute...
4
by: trond | last post by:
Hello all, Before I start I'd like to point out that I am a complete novice when it comes to asp.net - My background is in network and operating systems, and although I have been doing a bit of...
2
by: mitsura | last post by:
Hi, I need to read a simle XML file. For this I use the SAX parser. So far so good. The XML file consist out of number of "Service" object with each object a set of attributes. I read...
5
by: jason.neo | last post by:
Hi all experts, I am going nuts with this Invalid postback or callback argument thingy with .Net 2.0 I am building a file attachment module which relays on a Datatable stored in session (yeah...
4
by: mattlightbourn | last post by:
Hi all, I have a problem which has been driving me nuts. Crosstab queries! I have a database witch a few different tables to do with garment manufacturing. I have a table for a client...
3
by: DuncanIdaho | last post by:
Hello experts IE 7.0.5730.11 Opera 9.27 Firefox 2.0.0.14 This problem only occurs in Opera and Firefox (amazing, IE does something right, or maybe not) Anyway, the problem is that when I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.