Mickey,
There are a couple of ways you can do that; an accurate way, and an
inaccurate (yet possibly acceptable) way.
The inaccurate way is to place the following pseudo-code into the
txtYearsofService textbox's ControlSource property:
=DateDiff("yyyy", [DateStarted], Date())
This will only return the number of years.
The accurate way is to place the following pseudo-code into the
txtYearsofService textbox's ControlSource property:
=Diff2Dates("dmy",[DateStarted], Date(), False)
This will (selectively) return the number of years, months, days, hours,
minutes and seconds.
....but before you try this last sugestion, download the code found at
http://www.pacificdb.com.au/MVP/Code/Diff2Dates.htm, and place it in a
standard module.
Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
"Mickey" <(E-Mail Removed)> wrote in message
news

3672B69-0B0E-4D83-8709-(E-Mail Removed)...
>I have a table designed to reflect employees, Vacation information and
> attendance information. I would like to show the years of service in the
> company in a field in the form. How? Please help. Your assistance would
> be
> much appreciated. I am new at this development programming in access