John - I haven't followed your earlier threads, but there are two ways you
can convert a "date string" to a "date variable":
(1) If you put the date string into a recognizable format (say,
"mm/dd/yyyy"), you can use the DateValue function to convert it to a date
value:
MyDate = DateValue(Right("YYYYMMDD",2) & "/" & Mid("YYYYMMDD",5,2) &
"/" & Left("YYYYMMDD",4))
(2) You can use the DateSerial function to convert to a date:
MyDate = DateSerial(CInt(Left("YYYYMMDD",4)),
CInt(Mid("YYYYMMDD",5,2)), CInt(Right("YYYYMMDD",2)))
--
Ken Snell
<MS ACCESS MVP>
"John Marshall, MVP" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Now that I have the YMD text string to date conversion working, how do I
> convert two text strings, one "YYYYMMDD" and the second "HH:MM" to a date
> variable?
>
> John... Visio MVP
>
> Need stencils or ideas? http://www.mvps.org/visio/3rdparty.htm
> Need VBA examples? http://www.mvps.org/visio/VBA.htm
> Common Visio Questions http://www.mvps.org/visio/common_questions.htm
>
>