Now( ) Function

G

Guest

On one of my forms I have a Start Date Textbox and a End Date Textbox. When
the form loads I have it so that the Date is automatically entered in the two
text boxes with the code....

me.txtStartDate = Now
me.txtEndDate = Now

This works however it also puts the time into the textbox as well. I have
the format property of the textbox set to "short date" but it still puts the
time in. Anyway to load the date in a textbox without the time going in as
well?
 
R

Rick Brandt

Playa said:
On one of my forms I have a Start Date Textbox and a End Date Textbox. When
the form loads I have it so that the Date is automatically entered in the two
text boxes with the code....

me.txtStartDate = Now
me.txtEndDate = Now

This works however it also puts the time into the textbox as well. I have
the format property of the textbox set to "short date" but it still puts the
time in. Anyway to load the date in a textbox without the time going in as
well?

Use Date instead of Now.
 
G

Guest

Try the Date function e.g.

me.txtStartDate = Date
me.txtEndDate = me.txtStartDate

Hope This Helps
Gerald Stanley MCSD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top