Art Cav said:
When I open my Form I would like to enter a processing date
that could be added to each update record
Do you mean you want the user to enter the processing date into a text
box on the form, and then that date will be copied into each record that
is subsequently modified on that form? Or do you just want the current
date to be stamped into each updated record?
If it's the former, you can put an unbound text box on the form, call it
maybe "txtProcessingDate", and set its Format property to one of the
date formats. You also need to have a date field in the table to which
the field is bound. Perhaps that field would be called "DateProcessed".
Then create an event procedure for the form's BeforeUpdate event, with
code similar to this:
'---- start of example code ----
Private Sub Form_BeforeUpdate(Cancel As Integer)
If IsNull(Me.txtProcessingDate) Then
MsgBox _
"You must fill out the processing date before the " & _
"current record can be saved.", _
vbInformation, "Entry Required"
Cancel = True
Me.txtProcessingDate.SetFocus
Else
' Get the processing date for the record from
' the unbound control.
Me.DateProcessed = Me.txtProcessingDate
End If
End Sub
'---- end of example code ----