I have a date entered text box on a form that i want to automatically populate with the current date, every time a new form is presented. I want this to happen without a pop-up calendar. The call-in procedure is not working. any solutions?
Set the default value of the field in the table to now() or the before update or form current event procedure of the form can set the value in the text box.
Private Sub Form_BeforeUpdate(Cancel As Integer)
if IsNull(the_field) Then
the_field = Now()
End If
Many other methods can be used. Here is how I would do it. It depends on your application.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.