L
Laurel
I have a macro that initializes a value in a new record.
If I place it so it works to set the DefaultValue
property, instead of the value itself, the resulting date
contains the current time. If I place it so it works to
set the value itself, the date is as I want it.... no time
included. Why is this, and what could I do about it if I
had no choice but to set the [DefaultValue] property?
This results in the undesired current time in the
Score_Date field:
Item: [Forms]![frmScoreEntryHistory]![Score_Date].
[DefaultValue]
Expression: [Forms]![frmScoreEntryHistory]![cboStudent_ID]
This results in the desired date only in the new record.
Item: [Forms]![frmScoreEntryHistory]![Score_Date].
[DefaultValue]
Expression: [Forms]![frmScoreEntryHistory]![cboStudent_ID]
If I place it so it works to set the DefaultValue
property, instead of the value itself, the resulting date
contains the current time. If I place it so it works to
set the value itself, the date is as I want it.... no time
included. Why is this, and what could I do about it if I
had no choice but to set the [DefaultValue] property?
This results in the undesired current time in the
Score_Date field:
Item: [Forms]![frmScoreEntryHistory]![Score_Date].
[DefaultValue]
Expression: [Forms]![frmScoreEntryHistory]![cboStudent_ID]
This results in the desired date only in the new record.
Item: [Forms]![frmScoreEntryHistory]![Score_Date].
[DefaultValue]
Expression: [Forms]![frmScoreEntryHistory]![cboStudent_ID]