当我尝试访问我的访问表单的数据库时,我不断收到相同的错误消息;
名称表格的无效括号![抄表日期>盒] .tbxCurrent]
我尝试删除,添加括号并将其替换为'
,但没有运气。
SELECT 0.3 AS CurrWaterRate,
forms![Meter Reading Date Box].tbxNewGasRate AS CurrGasRate,
forms![Meter Reading Date Box].tbxNewElecRate AS CurrElecRate,
4.65 AS BaseElec,
IIf([RV]=True,0,3) AS BaseGas,
IIf([RV]=True,0,9) AS Sewer,
IIf([RV]=True,0,13.35) AS Garbage,
[Current Month Utilities].*,
[Previous Month Utilities].*,
[Current Month Utilities]!KWHReading-
[Previous Month Utilities]!KWHReading AS BillKWH,
[Current Month Utilities]!GasReading-
[Previous Month Utilities]!GasReading AS BillGas,
[Current Month Utilities]!WaterReading-
[Previous Month Utilities]!WaterReading AS BillWater,
[Customer Maintenance].*,
([BillKWH]*[CurrElecRate]) AS DueKWH,
IIf([RV]=True,0,
IIf([Electric]=True,0,
IIf([BillGas]>10,6.5+([BillGas]-
10)*[CurrGasRate],6.5))) AS DueGas,
IIf([RV]=True,0,
IIf([BillWater]<3,8,([BillWater]-3)*0.3+8)) AS DueWat,
IIf([RV]=True,0,
IIf([Electric]=True,0,3)) AS GasSurcharge,
(([DueWat]+[DueKWH]+[DueGas]+[GasSurcharge]+[Sewer]+
[Garbage]+[BaseElec]+[BaseGas])*0.0825) AS Taxable,
[LotRent]+[TrailRent]+[DueWat]+[DueKWH]+[DueGas]+
[GasSurcharge]+[Garbage]+[Sewer]+[Taxable]+[BaseElec]+
[LateFee] AS TotalDue,
([TotalDue]+[PastDue]-[Credit]) AS GrandTotal,
[FName] & " " & [LName] AS Name
FROM ([Customer Maintenance]
INNER JOIN [Current Month Utilities]
ON [Customer Maintenance].AccountNo=[Current Month Utilities].AccountNo)
INNER JOIN [Previous Month Utilities]
ON [Customer Maintenance].AccountNo=[Previous Month Utilities].AccountNo;