VBA Date & Time problem (1 Viewer)

GaleT

Registered User.
Local time
Yesterday, 18:52
Joined
Oct 18, 2019
Messages
72
Hi,
I need to enter the current Date/Time in a form field Txt_BARTinvoiceSub

This form is used to update existing records.

The recipient Table Field to be updated after I get the correct value in the form is formatted as Date/Time.


The following results in pound signs ######## entered into the form field.
Dim dtInvRequestSent As Date
dtInvRequestSent = Now()
Me.Txt_BARTinvoiceSub.Value = dtInvRequestSent



Help!



Gale
 

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 18:52
Joined
Oct 29, 2018
Messages
21,453
Hi Gale. Maybe the Textbox on the form is not wide enough to display the date and time returned by the Now() function. Try widening it to see if that helps.
 

GaleT

Registered User.
Local time
Yesterday, 18:52
Joined
Oct 18, 2019
Messages
72
That was it... thank you so much! :)
Gale
 

Users who are viewing this thread

Top Bottom