I've looked at all the posts I could and don't see the solution.
I am aware that the format to get a BLANK when the number is 0 is:
$ #,###.00;($ #,###.00);""
But I can't, for the life of me, get it to work in the following VBA
string. I have a total field that is 0 unless there's a total. I want
the user to see BLANK if it's zero (that's how they think of it).
thanks
sara
strSQL = " SELECT tblFreightBill. FreightBillKey,
tblFreightCo.Fr eightCo, " _
& " tblFreightBill. FreightBillNum, tblFreightBill. Freight, " _
& " tblFreightBill. FreightBillDate ,
tblFreightBill. DateBillEntered ," _
& " format(tblFreig htBill.FAKAmt,
'$#,##0.00;($#, ##0.00);""";""" ' _
& " tblFreightBill. POKey " _
& " FROM tblFreightCo " _
& " INNER JOIN tblFreightBill " _
& " ON tblFreightCo.Fr eightCOKey = tblFreightBill. FreightCoKey
" _
& " WHERE tblFreightBill. POKey= " & lngPOKey & ";"
I am aware that the format to get a BLANK when the number is 0 is:
$ #,###.00;($ #,###.00);""
But I can't, for the life of me, get it to work in the following VBA
string. I have a total field that is 0 unless there's a total. I want
the user to see BLANK if it's zero (that's how they think of it).
thanks
sara
strSQL = " SELECT tblFreightBill. FreightBillKey,
tblFreightCo.Fr eightCo, " _
& " tblFreightBill. FreightBillNum, tblFreightBill. Freight, " _
& " tblFreightBill. FreightBillDate ,
tblFreightBill. DateBillEntered ," _
& " format(tblFreig htBill.FAKAmt,
'$#,##0.00;($#, ##0.00);""";""" ' _
& " tblFreightBill. POKey " _
& " FROM tblFreightCo " _
& " INNER JOIN tblFreightBill " _
& " ON tblFreightCo.Fr eightCOKey = tblFreightBill. FreightCoKey
" _
& " WHERE tblFreightBill. POKey= " & lngPOKey & ";"
Comment