VBA Date & Time problem

GaleT

Registered User.
Local time
Today, 03:03
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
 
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.
 
That was it... thank you so much! :-)
Gale
 

Users who are viewing this thread

Back
Top Bottom