Reuse a form

  • Follow


I created a sub-form and it has a record source that list all the records 
pertaining to a given ID.  This works fine.

Now however, I would like to reuse this sub-form in a new form but only 
display the last date entry.

How can I do this?  I am trying to avoid creating a new form, because that 
just leads to updating nightmares, keeping multiple versions in sync...  I am 
sure there is an easy way to do this that I am simply not aware of.

Thank you for the help,

QB
0
Reply Utf 12/8/2009 6:18:01 PM

Why not just set the recordsource to a different query through code?


-- 
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"QB" <QB@discussions.microsoft.com> wrote in message 
news:904ABD28-0257-4BC1-8795-7EE1C3B9E1F0@microsoft.com...
>I created a sub-form and it has a record source that list all the records
> pertaining to a given ID.  This works fine.
>
> Now however, I would like to reuse this sub-form in a new form but only
> display the last date entry.
>
> How can I do this?  I am trying to avoid creating a new form, because that
> just leads to updating nightmares, keeping multiple versions in sync...  I 
> am
> sure there is an easy way to do this that I am simply not aware of.
>
> Thank you for the help,
>
> QB 


0
Reply Douglas 12/8/2009 6:38:25 PM


A thought is to have a DMax on your main form with button for Last_Entry.  
then include these in the Record Source for the subform.

-- 
Build a little, test a little.


"QB" wrote:

> I created a sub-form and it has a record source that list all the records 
> pertaining to a given ID.  This works fine.
> 
> Now however, I would like to reuse this sub-form in a new form but only 
> display the last date entry.
> 
> How can I do this?  I am trying to avoid creating a new form, because that 
> just leads to updating nightmares, keeping multiple versions in sync...  I am 
> sure there is an easy way to do this that I am simply not aware of.
> 
> Thank you for the help,
> 
> QB
0
Reply Utf 12/8/2009 7:19:02 PM

2 Replies
392 Views

(page loaded in 0.323 seconds)

Similiar Articles:
















7/24/2012 5:22:46 AM


Reply: