Day of Week using a calendar to txt box

godzilla65

Board Regular
Joined
Nov 25, 2004
Messages
122
Hi to all the experts from a new access novice.

So far so good.................But is it possible within a form to use
a calendar which I have working all aok to actually insert the DAY OF WEEK in the same form for say my textbox "text64", So if I select November 28th it know that it is a MON and inserts in my text box, I got the calander happening, but cant work this DAY bit out, mayb its not possible with this callendar? any help appreciated, as I say I get it to place the actual date in my textbox61 all aok

Class:MSCAL.Calendar.7 which places the calendar date into a text box

Private Sub Calendar3_AfterUpdate()
Dim Pickupdate
Pickupdate = Calendar3.Value
Text61.Value = Pickupdate
Text70.SetFocus
Calendar3.Visible = False
End Sub

Cheers Eric
 

Some videos you may like

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

bmacr

Board Regular
Joined
Jan 14, 2004
Messages
94
You can use the Format function to display a date however you like:

Me.Text64 = Format(Pickupdate, "dddd")
 

godzilla65

Board Regular
Joined
Nov 25, 2004
Messages
122
BMACR !!!! Brilliant exactly what I wanted !!!! Thanks for that.............took me sec to work out I had to add to code but got there and is xactly wot i required ..............................special thx
 

Watch MrExcel Video

Forum statistics

Threads
1,118,018
Messages
5,569,646
Members
412,285
Latest member
Daibear
Top