Format column in combobox

Status
Niet open voor verdere reacties.

LodewijkG

Gebruiker
Lid geworden
6 dec 2012
Berichten
98
Beste Helpmij gebruikers,

Ik wil graag een column in mijn combobox de format voor euro's geven. Nu heb ik het volgende stukje:

Code:
SELECT qryFreight.FreightCostId, qryFreight.tblFreight.CountryId, qryFreight.Country, qryFreight.Departure, qryFreight.Destination, qryFreight.Time, qryFreight.ContainerSize, [Sea]+[Land]+[CAF]+[BAF]+[LSS]+[Customs]+[THC]+[ISPS]+[IMO] AS Cost, qryFreight.ValidUntill, qryFreight.Forwarder, qryFreight.ShippingLine, qryFreight.Type, qryFreight.BAF, qryFreight.CAF, qryFreight.LSS, qryFreight.THC, qryFreight.ISPS, qryFreight.IMO, qryFreight.Customs, qryFreight.FreightId
FROM qryFreight
WHERE (((qryFreight.ValidUntill)>Date()) AND ((qryFreight.Type)="Transport to destination"))
ORDER BY qryFreight.Country;

Nu wil ik de [Sea]+[Land]+[CAF]+[BAF]+[LSS]+[Customs]+[THC]+[ISPS]+[IMO] AS Cost formatten in euro's maar als ik:
Code:
Format(([Sea]+[Land]+[CAF]+[BAF]+[LSS]+[Customs]+[THC]+[ISPS]+[IMO] AS Cost),"€#,##0.00")

Krijg ik een syntax error, kan iemand mij toelichten waar ik fout zit?
 
Je veldnaam mag sowieso nooit binnen de functie staan.
Code:
SELECT FreightCostId, CountryId, Country, Departure, Destination, Time, ContainerSize,
    Format(([Sea] + [Land] + [CAF] + [BAF] + [LSS] + [Customs] + [THC] + [ISPS] + [IMO]), "€#,##0.00") As Cost
    ValidUntill , Forwarder, ShippingLine, type, BAF, CAF, LSS, THC, ISPS, IMO, Customs, FreightId
    From qryFreight
    WHERE (ValidUntill > Date And type = "Transport to destination")
    ORDER BY Country;
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan