week number in Access 2002

P

papa

Hi Guys,

Just a quick question.

Does anyone know how to get the week number to appear on
a form in access?

as in this is currently week 8.

What I need for reference purposes is for the week number
to appear and update itself.

Rgds,
Papa
 
J

Jeff Conrad

Hi,

How about this as the Control Source for a text box:

=DatePart("ww",Date())

Returns 8.

Hope that's what you're looking for.

Jeff Conrad
Bend, Oregon
 
F

fredg

Hi Guys,

Just a quick question.

Does anyone know how to get the week number to appear on
a form in access?

as in this is currently week 8.

What I need for reference purposes is for the week number
to appear and update itself.

Rgds,
Papa
Take your pick:
=DatePart("ww",Date())
or...
=Format(Date(),"ww")
 
J

John Vinson

Hi Guys,

Just a quick question.

Does anyone know how to get the week number to appear on
a form in access?

as in this is currently week 8.

What I need for reference purposes is for the week number
to appear and update itself.

Set the Control Source of an unbound textbox to

=DatePart("ww", Date())
 
P

papa

Hi Guys,
I'm probably doing something stupid but none of the above
seem to work!!!! I also upgraded to Access 2003 last
night.

Can anyone offer advice?

Rgds,
Papa
 
J

John Vinson

Hi Guys,
I'm probably doing something stupid but none of the above
seem to work!!!! I also upgraded to Access 2003 last
night.

Try typing Ctrl-G to open the VBA editor and typing

?DatePart("ww", Date())

in the Immediate window. If you get an error message,
it may be the very common References bug. Open any
module in design view, or open the VBA editor by typing
Ctrl-G. Select Tools... References from the menu. One of the
..DLL files required by Access will probably be marked
MISSING. Uncheck it, recheck it, close and open Access.

If none are MISSING, check any reference; close and open
Access; then uncheck it again. This will force Access to
relink the libraries.

\
 

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

Top