Post your query SQL. Open the query in design view, click on menu VIEW - SQL
View, highlight all, copy, and paste in a post.
UPDATE [Chassis Ingates] SET [Chassis Ingates].[Chassis Count] =
Sum(IIf([Wheels] Is Not Null,1,0)+IIf([Chassis A] Is Not
Null,1,0)+IIf([Chassis B] Is Not Null,1,0)+IIf([Chassis C] Is Not Null,1,0));
Thx

Signature
A MACKENZIE, CMA, MBA
> Post your query SQL. Open the query in design view, click on menu VIEW - SQL
> View, highlight all, copy, and paste in a post.
[quoted text clipped - 20 lines]
> > > >
> > > > Thanks
KARL DEWEY - 31 May 2006 21:55 GMT
You are summing a bunch of records from the [Chassis Ingates] table.
Which one of the records of [Chassis Ingates] are you wanting to update?
There is no need and is bad databasing to store calculations in your table.
Now if you had dates with this and you wanted to store a snapshot calculation
you would want to append the point-in-time data to a history file.
If you insist then you can do it in two queries - first one sum and second
update - but it will update all the records with the same information.
> UPDATE [Chassis Ingates] SET [Chassis Ingates].[Chassis Count] =
> Sum(IIf([Wheels] Is Not Null,1,0)+IIf([Chassis A] Is Not
[quoted text clipped - 26 lines]
> > > > >
> > > > > Thanks
aMack - 01 Jun 2006 00:28 GMT
Thank you for your help.
I am able to place the count in both forms and Reports instead of the
database as you suggeted.
Removing the "Sum" portion of the calc gives me correct data for each line.
Thanks again.

Signature
A MACKENZIE, CMA, MBA
> You are summing a bunch of records from the [Chassis Ingates] table.
> Which one of the records of [Chassis Ingates] are you wanting to update?
[quoted text clipped - 36 lines]
> > > > > >
> > > > > > Thanks