dlookup

G

Guest

please could someone help me with a dlookup query.

my data in table1 [admit date] [discharge date]
in table2 [start] [end] [weekno]

i need to look at the admit date check which date period it is in (start and
end) and for it to show weekno as lookup

i have tried dlookup("Weekno","table1","Admitdate>=start" and
"Admitdate<=End")

it bringsup 1 in every field can you help?
 
G

Guest

Kate

You should be able to just criteria in your query for this. Something like:-

SELECT Table2.WeekNo, Table1.AdmitDate
FROM Table2, Table1
WHERE Table1.AdmitDate Between Table2.Start And Table2.End;

should do the trick.

Hope this helps.

Andy
 

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