E
edisonl via AccessMonster.com
Hi,
1.QS: Does anyone knows how to concate Date + Time ?
2.Application: Leave- Annual Leave System
3.Scenerio: Apply Half Day (Half Morning/Afternoon)
Morning=08:30 to13:00 Afternoon=13:00 to 17:30
4.Problem:
FromDate_TextBox = Calender.Value
ToDate_TextBox = Calender.Value
if(HalfDayCheckBox_Check)
Choice=InputBox("Prompt to Choose Morning/Afternoon:")
FromDate_TextBox.Format = "General Date"
ToDate_TextBox.Format = "General Date"
if(Choice=Morning)then
FromDate_TextBox = FromDate_TextBox + "08:30"
ToDate_TextBox = ToDate_TextBox + "13:00"
ElseIf(Choice=Afternoon)then
FromDate_TextBox = FromDate_TextBox + "13:00"
ToDate_TextBox = ToDate_TextBox + "17:30"
EndIf
End If
5.Error: Run-Time Error'13'
type mismatch
Edison
1.QS: Does anyone knows how to concate Date + Time ?
2.Application: Leave- Annual Leave System
3.Scenerio: Apply Half Day (Half Morning/Afternoon)
Morning=08:30 to13:00 Afternoon=13:00 to 17:30
4.Problem:
FromDate_TextBox = Calender.Value
ToDate_TextBox = Calender.Value
if(HalfDayCheckBox_Check)
Choice=InputBox("Prompt to Choose Morning/Afternoon:")
FromDate_TextBox.Format = "General Date"
ToDate_TextBox.Format = "General Date"
if(Choice=Morning)then
FromDate_TextBox = FromDate_TextBox + "08:30"
ToDate_TextBox = ToDate_TextBox + "13:00"
ElseIf(Choice=Afternoon)then
FromDate_TextBox = FromDate_TextBox + "13:00"
ToDate_TextBox = ToDate_TextBox + "17:30"
EndIf
End If
5.Error: Run-Time Error'13'
type mismatch
Edison