Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Date value 1

Status
Not open for further replies.

kpryan

Technical User
Aug 24, 2005
282
US
Hi all,
Is it possible when a date is typed into a date field ie: 1/2/08
That the field only shows the day ie: 1st and not the month or year.

many thanks,

Ken
 




Are you referring to entering data directly into a TABLE or a FORM? You are int the Forms forum and you could use the Format function or the Day Function to DISPLAY the day for a particular date.

Skip,

[glasses]Did you hear what happened when the OO programmer lost his library?...
He's now living in OBJECT poverty![tongue]
 
Hi SkipVought
Thanks for your reply. Yes its for a form. I though it might be the day function. I did try it, but could not get it to work.

Ken
 
sure, but if that field is bound to a table you will need to adjust your form design. make the date field that is bound to the table invisible, then create another visible unbound date text box. Then you can capture the full date value and put it in the invisible text box and reformat the visible one to only show the day with FORMAT() function. THen update this event every time the visible date box changes or loses its focus.

.....
I'd rather be surfing
 
How are kpryan . . .

In form design view, change the [blue]Format[/blue] of the field to [blue]dd[/blue] . . .

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top