Thanks mate, I really appreciate it.
At first I didn't want to use a function in hope that there would be a VBScript alternative, but alas it seems not, I made a few changes to your function, see below.
Code:
function ampmTime(InTime)
dim OutHour, ampm, minutes
if hour(InTime) < 12 then
OutHour = hour(InTime)
ampm = "am"
end if
if hour(InTime) = 12 then
OutHour = hour(InTime)
ampm = "pm"
end if
if hour(InTime) > 12 then
OutHour = hour(InTime) - 12
ampm = "pm"
end if
minutes = minute(intime)
IF LEN(minutes) < 2 THEN minutes = minutes & "0"
IF LEN(OutHour) < 2 THEN OutHour = "0" & OutHour
ampmTime = OutHour & ":" & minutes & ampm
end function