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

difference betwwn dates

Status
Not open for further replies.

binbyte

Technical User
Nov 24, 2004
11
AR
I have got a textbox in a form where I put the number of days between two different dates but I don't know how update the field in the table to show the number of days in the table too. I hope anyone help me.

Thanks
 
I assume you are using DATEDIFF to calculate the number of days. If this value is then written to a textbox control & the control is bound to your underlying table, when you navigate records it should save the value. You could manually save the record using
Code:
DoCmd.RunCommand acCmdSaveRecord

James Goodman MCSE, MCDBA
 
But don't. If you're storing the two dates, don't store the number of days between them. You can always do this calculation on the fly. Storing all three values is asking for problems--your data will end up being out of synch sooner or later.

---
Jeremy Wallace
METRIX Project Coordinator
Fund for the City of New York
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top