hi, hope i can join this thread, since i don't think my humble concern's strictly speaking about it, however you be the judge(s):
the following is from some vba code i'm using
Write #intFileNum, rsMyData!Table_Name, rsMyData!Protocol_ID, rsMyData!Patient_ID, rsMyData!Course_ID, _
IIf(rsMyData!AE_Type_Code = 0, "", CLng(rsMyData!AE_Type_Code)), IIf(rsMyData!AE_Grade_Code = 0, "", CInt(rsMyData!AE_Grade_Code)), _
rsMyData!AE_OTHER, IIf(IsNull(rsMyData!AE_Attribution_Code), vbNullString, CInt(Nz(rsMyData!AE_Attribution_Code))), rsMyData!AER_Filed
and it helps to export a csv file that has the following contents based on an a2k table w/ one record...(for testing purposes)
"ADVERSE_EVENTS","T95-0036","A5001","2",10018876,4,"","","1"
what i'm writing about is the fact that what the goal is, is to yield a record that looks like this when the value of the AE_Attribution_Code variable is null (i.e. when the data entry people don't enter anything into the column for it)
"ADVERSE_EVENTS","T95-0036","A5001","2",10018876,4,"",,"1"
someone's suggested using vbNullString but i tend to think it's not any different that entering "" in the same part of the code. is there something that would have the effect of exporting 'nothing' to the export file?
“The philosophy of the school room in one generation will be the philosophy of government in the next." --- Abraham Lincoln