Hi Everyone,
Following on from mt earler post, I would now like some help on formating the SQL
strSql = "SELECT Scheme, Sum(InternalSale) AS 'Internal Sale', Sum(Delivered) AS 'Total CERT Delivered' FROM QryElectricalFundingData"
To get Internal Sale with the space showing in the List Box I need to put it in Single Quotes 'Internal Sale' but the quotes show in the list box, is there a way to not show the quotes and keep the space?
I have one field in the Query that is a number that represents a percentage, so I would like to show the Average I tried Avg(PG) AS PG but that returned no results
Also I would like to Format the Total Cert Delivered
MajP kindly suggested format(Sum(Delivered),"#,###") AS TotalDelivered
so inserted into SQL
strSql = "SELECT Scheme, Sum(InternalSale) AS 'Internal Sale', format(Sum(Delivered),"#,###") AS 'Total CERT Delivered' FROM QryElectricalFundingData"
This gives me a Compile Error expected end of statement at the first #
Can anyone give me some quidance please?
Thanks cneill
Following on from mt earler post, I would now like some help on formating the SQL
strSql = "SELECT Scheme, Sum(InternalSale) AS 'Internal Sale', Sum(Delivered) AS 'Total CERT Delivered' FROM QryElectricalFundingData"
To get Internal Sale with the space showing in the List Box I need to put it in Single Quotes 'Internal Sale' but the quotes show in the list box, is there a way to not show the quotes and keep the space?
I have one field in the Query that is a number that represents a percentage, so I would like to show the Average I tried Avg(PG) AS PG but that returned no results
Also I would like to Format the Total Cert Delivered
MajP kindly suggested format(Sum(Delivered),"#,###") AS TotalDelivered
so inserted into SQL
strSql = "SELECT Scheme, Sum(InternalSale) AS 'Internal Sale', format(Sum(Delivered),"#,###") AS 'Total CERT Delivered' FROM QryElectricalFundingData"
This gives me a Compile Error expected end of statement at the first #
Can anyone give me some quidance please?
Thanks cneill