Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / April 2006

Tip: Looking for answers? Try searching our database.

ASP page troubles

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DanjoMan - 28 Apr 2006 15:09 GMT
I am trying to query an Access table but a lot of the fields are blank!

As so in the case of NMBR_HIG_LICENSED_PRODUCERS column for this record.

How do I correctly test for a blank value? Cause I want to make it 0 if it
is./
number_lic_producers = 0
number_lic_producers = Trim(rst("NMBR_HIG_LICENSED_PRODUCERS"))

but that will still replace my 0 no matter what right?

I tried other ways as well..
'69 Camaro - 28 Apr 2006 15:39 GMT
Hi.

> How do I correctly test for a blank value? Cause I want to make it 0 if it
> is./

Use the Nz( ) function.  For example:

 number_lic_producers = Nz(rst("NMBR_HIG_LICENSED_PRODUCERS"), 0)

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
http://www.Access.QBuilt.com/html/expert_contributors2.html for contact
info.

>I am trying to query an Access table but a lot of the fields are blank!
>
[quoted text clipped - 8 lines]
>
> I tried other ways as well..
DanjoMan - 28 Apr 2006 15:40 GMT
        If IsNull(rst("NMBR_HIG_LICENSED_PRODUCERS")) Then
            number_lic_producers = 0
        Else
            number_lic_producers = rst("NMBR_HIG_LICENSED_PRODUCERS")
        End If

> I am trying to query an Access table but a lot of the fields are blank!
>
[quoted text clipped - 8 lines]
>
> I tried other ways as well..
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.