K
Keith Emery
I need a generic Sub() that I can call from various forms
to take user entered dates and convert then into true long
date/time values. So far I have had to copy code fromo one
form to the next.
********************************************************
Sub UpdateHiddenDates(FormSelected As Form, Date1 As Date,
Date2 As Date, cntDate1 As Control, cntDate2 As Control)
FormSelected.cntDate1.Value = CDate(Date1 & " 00:00:00")
FormSelected.cntDate2.Value = CDate(Date2 & " 23:59:59")
FormSelected.Refresh
End Sub
*********************************************************
This does not work as i am using incorrect type values,
but don't know where they are wrong!
to take user entered dates and convert then into true long
date/time values. So far I have had to copy code fromo one
form to the next.
********************************************************
Sub UpdateHiddenDates(FormSelected As Form, Date1 As Date,
Date2 As Date, cntDate1 As Control, cntDate2 As Control)
FormSelected.cntDate1.Value = CDate(Date1 & " 00:00:00")
FormSelected.cntDate2.Value = CDate(Date2 & " 23:59:59")
FormSelected.Refresh
End Sub
*********************************************************
This does not work as i am using incorrect type values,
but don't know where they are wrong!