Dlookup

D

deb

access 2003
main form is f040ProjectMain (PK ProjectID)
t51KeyMilestones(PK KeyMilestonesID FK ProjectID)
t51KeyMilestones.ProjectID can have many KeyMilestoneSubID

I would like a textbox on my f040ProjectMain(form) to contain a dlookup of
the first record in t51KeyMilestones(table) where t51KeyMilestones ProjectID
= f040ProjectMain ProjectID and t51KeyMilestones KeyMilestoneSubID =12
 
J

Jeanette Cunningham

Hi deb,
build a query that returns the first record.
Include the fields ProjectID and KeyMilestoneSubID in the query, so you can
use them to check matching criteria.

How will you know which record is the first record - is it done by date for
example?

If it is date, you will need a totals query sorted by the date, then there
will be a way to detemine the first one.

Just for interest, what does the 51 mean in t51KeyMilestones?
I am working on a project management database at the moment - although it
sounds quite different from yours - built for a different purpose.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
 
D

deb

I list my tables in order.
51 is Key milestones
52 may be key milestone details
53 may be a table used for a dropdown box
and so on, it keeps related tables together
 
J

Jeanette Cunningham

Interesting way to do it.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
 

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

Similar Threads


Top