
Re: Auto enter date or time on double click
How about setting the Default value for the DateTime field to NOW()?
That should automatically fill in the current date and time when the record is
being created. It will be editable.
Assuming that you are using a form for data entry, you can lock individual
controls in the on current event of the form based on whether or not the record
is a new record.
AIR CODE in the form's current event.
Private Sub Form_Current()
Me.fID.Enabled = Me.NewRecord
End Sub
Steve Lenaghan wrote:
>
> I am building a taxi dispatch application around Access 2K
>
> I need to have the date and time auto entered when the call taker enters
> the dispatch information. This can be either double click the time/date
> fields or display when the record is saved.
>
> Is there a format to have date and time as one files, i.e. "Nov. 28,
> 2004, 1:16 pm"
>
> I also require the ability to change the date and time manually in the
> case of calls scheduled to be done at a later date. I don't have a
> problem with inserting a field strictly for future bookings.
>
> I would like to lock the time/date field once the record has been saved.
>
> "However" I also need to have a completed time field that the dispatcher
> can double click once the trip is done.
>
> TIA
>
> Steve L.