CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Math Function in a Grid

Print topic Send  topic

Author Message
Rosario


Posts: 54
Posted: 08/13/2004, 7:24 AM

Hi all,

I am trying to do a math function in a grid display but i am getting errors. I did a insert code on a new lable, trying to subtract time beteen 2 table fields that show. date

This is what i inserted:

DateDiff("h", [Timestamp], [last_modified]) & ":" & DateDiff("n", [Timestamp], [last_modified]) - (INT(DateDiff("n", [Timestamp], [last_modified])/60)*60)

Where last_modified is the end date and Timestamp is the start date. basicly trin to convert time to hours total.:-<

This code works for access but here it says brackets are not allowed. Im lost please help. This calulation is fine under a quary but i am trying to make a grid output on a table with the calculation in a new field, so thats why i thought i might be able to just like a access quarry. hmmmmmmmmmmmm
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.