G
Guest
I have a form based on a query... I was able to enter info into the form and
then I changed some of this and now I can't. Form set to can edit etc.
Thought I remember reading something about "expression" in the qry but now I
can't find it
The numbers are category numbers ie [260] that contain Currency info. Each
Plan has different prices for categories but the categories need to be added
for a ttl and the ttl of some make up just the bldg. Then that needs to be
devided by the sqft.
Is there some other way to do this?
SELECT tblPlan.PlanID, tblPlan.SQFT, tblPlan.MTGRms, tblPlan.Seating,
tblPlan.LastEdited, tblPlan.[260], tblPlan.[280], tblPlan.[320],
tblPlan.[360], tblPlan.[380], tblPlan.[400], tblPlan.[420], tblPlan.[450],
tblPlan.[500], tblPlan.[520], tblPlan.[540], tblPlan.[560], tblPlan.[580],
tblPlan.[600], tblPlan.[610], tblPlan.[620], tblPlan.[630], tblPlan.[660],
tblPlan.[670], tblPlan.[680], tblPlan.[700], tblPlan.[720], tblPlan.Examples,
tblPlan.Notes,
Sum([260]+[280]+[320]+[360]+[380]+[400]+[420]+[450]+[500]+[520]+[540]+[560]+[580]+[600]+[610]+[620]+[630]+[660]+[670]+[680]+[700]+[720])
AS Total,
Sum([380]+[400]+[420]+[450]+[500]+[520]+[540]+[560]+[580]+[600]+[610]+[620]+[630]) AS EstBuildCost, CCur([EstBuildCost]/[SQFT]) AS SqFTPrice
FROM tblPlan
GROUP BY tblPlan.PlanID, tblPlan.SQFT, tblPlan.MTGRms, tblPlan.Seating,
tblPlan.LastEdited, tblPlan.[260], tblPlan.[280], tblPlan.[320],
tblPlan.[360], tblPlan.[380], tblPlan.[400], tblPlan.[420], tblPlan.[450],
tblPlan.[500], tblPlan.[520], tblPlan.[540], tblPlan.[560], tblPlan.[580],
tblPlan.[600], tblPlan.[610], tblPlan.[620], tblPlan.[630], tblPlan.[660],
tblPlan.[670], tblPlan.[680], tblPlan.[700], tblPlan.[720], tblPlan.Examples,
tblPlan.Notes;
Thanks
then I changed some of this and now I can't. Form set to can edit etc.
Thought I remember reading something about "expression" in the qry but now I
can't find it
The numbers are category numbers ie [260] that contain Currency info. Each
Plan has different prices for categories but the categories need to be added
for a ttl and the ttl of some make up just the bldg. Then that needs to be
devided by the sqft.
Is there some other way to do this?
SELECT tblPlan.PlanID, tblPlan.SQFT, tblPlan.MTGRms, tblPlan.Seating,
tblPlan.LastEdited, tblPlan.[260], tblPlan.[280], tblPlan.[320],
tblPlan.[360], tblPlan.[380], tblPlan.[400], tblPlan.[420], tblPlan.[450],
tblPlan.[500], tblPlan.[520], tblPlan.[540], tblPlan.[560], tblPlan.[580],
tblPlan.[600], tblPlan.[610], tblPlan.[620], tblPlan.[630], tblPlan.[660],
tblPlan.[670], tblPlan.[680], tblPlan.[700], tblPlan.[720], tblPlan.Examples,
tblPlan.Notes,
Sum([260]+[280]+[320]+[360]+[380]+[400]+[420]+[450]+[500]+[520]+[540]+[560]+[580]+[600]+[610]+[620]+[630]+[660]+[670]+[680]+[700]+[720])
AS Total,
Sum([380]+[400]+[420]+[450]+[500]+[520]+[540]+[560]+[580]+[600]+[610]+[620]+[630]) AS EstBuildCost, CCur([EstBuildCost]/[SQFT]) AS SqFTPrice
FROM tblPlan
GROUP BY tblPlan.PlanID, tblPlan.SQFT, tblPlan.MTGRms, tblPlan.Seating,
tblPlan.LastEdited, tblPlan.[260], tblPlan.[280], tblPlan.[320],
tblPlan.[360], tblPlan.[380], tblPlan.[400], tblPlan.[420], tblPlan.[450],
tblPlan.[500], tblPlan.[520], tblPlan.[540], tblPlan.[560], tblPlan.[580],
tblPlan.[600], tblPlan.[610], tblPlan.[620], tblPlan.[630], tblPlan.[660],
tblPlan.[670], tblPlan.[680], tblPlan.[700], tblPlan.[720], tblPlan.Examples,
tblPlan.Notes;
Thanks