Weeknumbers to calendar component?

  • Thread starter Thread starter hanski
  • Start date Start date
H

hanski

Hi

I have put a calendar activex component into my form.

I wonder if it is possible to get also weeknumbers involved in
calendar component?


Hannu
 
Not sure exactly what you mean by "get... involved in calendar component." If
you place a textbox on your form named *WeekNumber* and then use this code
(where YourCalendarName is the actual name of your ActiveX calendar)

Private Sub YourCalendarName_Click()
WeekNumber = Format(YourCalendarName, "ww")
End Sub

it will place the week number in the textbox.

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via AccessMonster.com
 
also

weeknumber = Datepart("ww",yourCalendarName)


Datepart can return the following based on the interval as follows:
Interval- will return
-------- --------------
yyyy Year
q Quarter
m Month
y Day of year
d Day
w Weekday
ww Week
h Hour
n Minute
s Second

Ron
 
That's what I love about Access! There's ALWAYS more than one way to skin a
cat!

;0)>

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via AccessMonster.com
 

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

Similar Threads


Back
Top