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

Probs with unbound text bx on form

Status
Not open for further replies.

Nicos67

Programmer
Apr 28, 2004
52
GB
Hi All,

Having probs mking this expression work in an unbound text bx on a subform to work out DateDiff in days between 2 dates on form.

Error message states I have too many brackets.

Any ideas

=(Int((DateDiff('d',[Date_of_Admission],[Date_of_Discharge]))

Nicos
 


( before Int and (( before Datediff



=Int(DateDiff('d',[Date_of_Admission],[Date_of_Discharge]))

Doesn't =[Date_of_Admission]- [Date_of_Discharge] give the correct value?



Neil Berryman
IT Trainer
neil_berryman@btopenworld.com
 
Thanks

Thanks for tip Neil - much appreciated

Nicos

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top