Filtering Sub Forms

S

Sok Hong

I just created a sub-table for a master table. The
subtable is linked by the ID field, and it's designed to
show the date and the status. However, when the form is
viewed by the user, I would like it to only show the last
date and status entered for that subform. Any Idea how I
can achieve this? Thank you.
 
M

Marshall Barton

Sok said:
I just created a sub-table for a master table. The
subtable is linked by the ID field, and it's designed to
show the date and the status. However, when the form is
viewed by the user, I would like it to only show the last
date and status entered for that subform. Any Idea how I
can achieve this?


I think you can get what you want by using a query for the
subform's record source:

SELECT TOP 1 IDfield, datefield, statusfield
FROM thesubtable
ORDER BY datefield DESC
 

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