Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 11th, 2004, 06:25 AM
katrina63 katrina63 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: Kentucky
Posts: 5 katrina63 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Problems With Report Adding Total Time

Can someone please help. In my query I have a field called Total Time to show me the time differenct between Start Time and End Time The field reads: Total Time:Format ([Start Time]-1-[End Time],"Short Time"). The calculation works great. When I try to create the report and do a sum of the Total Time =Sum ([Total Time]) I get "The Microsoft Jet database engine could not execute the SQL statement because it contains a filed that has an invalid data type. If I use just ([Total Time]) it only picks up one figure out of say 20. Just for curiousity I used =Count ([Total Time]) and it gives a correct answer. So, what formulation do I use to have the Total Time column add up to the number of hours and minutes. Can someone please send me the correct way to write this? PLEASE!!!!

Reply With Quote
  #2  
Old November 11th, 2004, 09:15 AM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 5
I am not sure where you were trying to put your Sum of Total Time on your report. But a couple of tips for you. You can't place a calculated control in the footer of a report. So what you have to do is create a text box to perform the calculation in either a group footer or detail section depending on your report design. Then set the property to not visible and then put a text box in the footer that has its control source set to the calculated text box.

The formula to add your time would be

=Format(Sum([Total Time]),"Short Time")

See if this helps
lwells

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Problems With Report Adding Total Time


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT