Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with an Expression please

Status
Not open for further replies.

chrisline90

Technical User
Sep 13, 2012
2
AE
Hi,

I am looking for a little help if poss please?

I have an Access 2010 Report and I am looking to SUM a column of data, but only if data in a different corresponding column is present.

To explain

I have a Column for the 'Date', another for 'NoItems' and another for 'Time'

So,

Date.......NoItems.........Time
---------------------------------
1/8..........1............10:31
1/8..........2
1/8..........4............11:42
1/8..........7............11:56
1/8..........3

I am looking for an expression that will SUM the number of Items, but only if the corresponding Time column has a value in it (all the times are different).

My thoughts are something along the lines of:

=Sum([NoItems])When([Time])IsNotNull

I know the above is not right, but just to give you an idea of my thought process and what I am trying to get at.

Any help at all on this issue would be very greatly accepted :)





 
Hi dhookom,

Thank you very much for your response and advice. Your expression works perfectly! :)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top