DLookup

ukmale65000

Registered User.
Local time
Today, 17:14
Joined
Nov 28, 2007
Messages
52
I have a table called weeknumber in which i have 3 fields. Field one
is weeknumber and contains a list of numbers 1 - 52, field 2 is called
fromdate and contains a date to define the start of a week, field 3 is
called todate and contains the date that defines the end of the week.
What i am trying to do is display the week munber in a form but am not
sure of the correct Dlookup string i need and where to place it within
the textbox criteria.
Can anyone help?
 
Hi

Something like this should do the trick:

Code:
=DLookUp("[weeknumber]","weeknumber","#" & Date() & "#" & " between [fromdate] and [todate]")

hth
Chris
 
Sorry, I forgot to mention, I assumed you are wanting to know the week number for today's date.

Chris
 

Users who are viewing this thread

Back
Top Bottom