|
pd_it_guy -> NULL values (3/31/2008 18:44:46)
|
The following snip of VB code pulls data from 3 tables for an events log. Since some details have no officer assigned, this necessarily generates a NULL value for officer_name as it cannot make the match from cc_data's reporting_officer1 to officer_number's badge. It all works fine, except it leaves a big blank on the printout for those events where there was no officer assigned. We would like to test in VB for when the value is NULL and recast the variable to "None Assigned" but after much effort we have found no operation able to test if a value is either is or is not NULL and allow a replacement. Before spending another afternoon digging, is this even possible to do? fp_sQry="SELECT c.primary_key, c.occ_date, c.occ_time, c.final_case_type," _ & " c.zone, ct.translation, c.address, c.report_flag, c.remarks, c.clear_remarks," _ & " o.officer_name" _ & " FROM case_type ct, cc_data c LEFT OUTER JOIN officer_number o" _ & " ON c.reporting_officer1 = o.badge" _ & " WHERE (c.occ_date='03/31/2008') AND c.final_case_type=ct.code"
|
|
|
|