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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formula Fields

Status
Not open for further replies.

sona123

Programmer
May 12, 2004
7
IN
Hi All,
I have a scenario where I have to print records like following

transaction opentime closetime duration
1 10:30 11:00 30
2 11:00 11:20 25
3 11:20 12:00 40

as u observe the close time is opne time for next record.
There is only one database field the "opentime". Can this be done using formula field. Please help.

Thank You,
Sona.
 
Create the following formula.

whileprintingrecords;
next({open.time})

You may be limited in some operations. You also won't have a close time for your last record because there will be no "Next" Mike

 
Thank you. That helped. I have to think about last record though.

Sona.
 
Thank you. That helped. I have to think about last record though.

Sona.
 
Thank you. That helped. I have to think about last record though.

Sona.
 
Thank you. That helped. I have to think about last record though.

Sona.
 
If your last transaction is always open, you could use the following to capture the current time:

if onlastrecord then now
else next({open.time}) Mike

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top