Click to See Complete Forum and Search --> : Return the Week Number and Month's name !
stono
Dec 12th, 2003, 09:58 AM
I have a date filed in an access report , i would like to find a function or something that will take the date value and return a string that tells the week number and the month's name ...
appreceate any help
federal102
Dec 12th, 2003, 12:27 PM
You can use the DatePart function to return integers representing the components of your date..
eg
If your date is 12/16/2003
Dim weekday As Integer
Dim month As Integer
weekday = DatePart("w", date_value)
month = DatePart("m", date_value)
stono
Dec 12th, 2003, 02:37 PM
thanks for your reply ,, but can you tell me who can i put this in an expresion window in an access report please
MileOut
Dec 26th, 2003, 01:02 PM
Originally posted by stono
I have a date filed in an access report , i would like to find a function or something that will take the date value and return a string that tells the week number and the month's name
To return the week number:
intWeekNumber = CInt(Format(Date(), "ww"))
To return the Month name:
strMonthName = Format(Date(), "mmmm")
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.