D
DaveMZ
Hello, i'm wondering if anyone can help me on this.
instead of retrieving the day of the month from an Access tasks table:
st = DatePart("d", rs.Fields("tasks.task_ass_date"))
nxt = DatePart("d", rs.Fields("tasks.task_ass_date")) + 1
due = DatePart("d", rs.Fields("task_ddate"))
I would like to retrieve the day of the year:
st = DatePart("y", rs.Fields("tasks.task_ass_date"))
nxt = DatePart("y", rs.Fields("tasks.task_ass_date")) + 1
due = DatePart("y", rs.Fields("task_ddate"))
but it gives me a 1004 "application defined error."
Is this possible to do using DatePart?
Thanks
instead of retrieving the day of the month from an Access tasks table:
st = DatePart("d", rs.Fields("tasks.task_ass_date"))
nxt = DatePart("d", rs.Fields("tasks.task_ass_date")) + 1
due = DatePart("d", rs.Fields("task_ddate"))
I would like to retrieve the day of the year:
st = DatePart("y", rs.Fields("tasks.task_ass_date"))
nxt = DatePart("y", rs.Fields("tasks.task_ass_date")) + 1
due = DatePart("y", rs.Fields("task_ddate"))
but it gives me a 1004 "application defined error."
Is this possible to do using DatePart?
Thanks