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

formula not calculating on first record

Status
Not open for further replies.

menuch

MIS
Jan 8, 2003
46
US
When I use this formula I get no data returned on the first groups first record.I do get it on the second record and so on. I will get it on the 2nd groups first record..

global numbervar R:={#Record Number};
global datetimevar S:={@63 - Date Time};
global datetimevar N:=previous({@98 - Date Time});

if R=1 Then datediff('n',{@DateTime - Out of Garage},{@63 - Date Time})
else

datediff('n',N,S)


Thanks!
 
You have 3 other formulas involved here that may be the problem....list them as well

But probably your problem relates to the fact that you are refering back to a previous value...which on the first record will be a null

if not ispreviousNull({@98 - Date Time})then
global datetimevar N :=previous({@98 - Date Time})
else
(put something here);



Jim Broadbent
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top