I am filling excel from an access query. in the QBE there is a field called Weight it has 2 decimal places(all with zeros). I can't seem to format the cells containing this data (column J in Excel)I would like two decimal places but am getting 0. Here is what I've tried the 1,2 and 3 are just for reference
With xlSheet.Rows(lngRecordNumber)
.Cells(, hctr).Value = rstQuarterSales(hctr )'recordset
(1).Cells(, hctr) = Format( .Cells(, hctr) ,"###0.00"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
(2).Cells(, hctr) = Format( .Cells(, hctr) ,"Fixed"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
(3).Cells(, hctr) = Formatnumber( .Cells(, hctr), 2)
Any Help is appreciated.
Len
With xlSheet.Rows(lngRecordNumber)
.Cells(, hctr).Value = rstQuarterSales(hctr )'recordset
(1).Cells(, hctr) = Format( .Cells(, hctr) ,"###0.00"
(2).Cells(, hctr) = Format( .Cells(, hctr) ,"Fixed"
(3).Cells(, hctr) = Formatnumber( .Cells(, hctr), 2)
Any Help is appreciated.
Len