P
PeterM
I have a field in a table that is set to a general number format called
txAlarmDateTime. On a form I have a separate start date (StartDate) and a
separate start time (StartTime). I need to populate the txAlarmDateTime
with a concatination of the StartDate and StartTime.
I want to add 30 minutes to the StartTime and have the following code.
Me.txAlarmDateTime = DateAdd("n", 30, Me.StartTime)
The problem I'm having is that it does add 30 minutes to the StartTime but
the date is 12/31/1899. If the StartTime is 11:00AM and the StartDate is
1/6/2010 then the resulting value is "12/31/1899 11:30AM" but it should be
"1/6/2010 11:30AM".
What am I doing wrong?
txAlarmDateTime. On a form I have a separate start date (StartDate) and a
separate start time (StartTime). I need to populate the txAlarmDateTime
with a concatination of the StartDate and StartTime.
I want to add 30 minutes to the StartTime and have the following code.
Me.txAlarmDateTime = DateAdd("n", 30, Me.StartTime)
The problem I'm having is that it does add 30 minutes to the StartTime but
the date is 12/31/1899. If the StartTime is 11:00AM and the StartDate is
1/6/2010 then the resulting value is "12/31/1899 11:30AM" but it should be
"1/6/2010 11:30AM".
What am I doing wrong?