in vba for access how do i get the day of the week for a date field?

  • Thread starter Thread starter Daniel
  • Start date Start date
D

Daniel

in vba for access how do i get the day of the week for a date field?
 
You mean Monday, Tuesday,...

Dim myDate As Date
myDate = DateSerial(2005, 12, 25)
MsgBox Format(myDate, "dddd")

or the day portion of the date?

Dim myDate As Date
myDate = DateSerial(2005, 12, 25)
MsgBox Day(myDate)
 

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

Back
Top