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!

How to Combine 3 Combo boxes into dates? 1

Status
Not open for further replies.

misssoysauce

Technical User
Dec 21, 2004
12
GB
Hiya, I am creating a rental form for a colleague. They want pull-down boxes for Month, Date, and Year for the delivery and collection of an item. Then they want the form to automatically calculate the number of days an item was on hire.

1.How do I combine the data from the month, date, and year boxes into a recognized date field, (which would be hidden)

2.that I can perform simple calculations on?

I have done the individual combo boxes as general numbers, created a field that combines the numbers and formats to a date, but when I try to subtract, I keep getting an #Error message in the calculation field.

Thank you!!
 
Hi
I think DateSerial May be what you want:
DateSerial(2005,9,22)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top