I agree with jim. You need to explain what you have and what you want in
_words_, precisely and concisely, rather than giving examples and expecting
us to figure out those details.
I don't have any background as a Database Psychic.
On the other hand, "something tells me" that it is unlikely that you need to
resort to VBA to get what you want. On the other other hand, perhaps it was
just a wayward breeze?
There are other very good suggestions on effective use of newsgroups at the
FAQ,
http://www.mvps.org/access/netiquette.htm.
Larry Linson
Microsoft Access MVP
<jimfortune@compumarc.com> wrote in message
news:1120006299.674204.188770@o13g2000cwo.googlegr oups.com...[color=blue]
>
perryche@yahoo.com wrote:[color=green]
> > Larry and James,
> > I sincerely thank you and appoligize for my poor explanation.
> > Your suggestions work to a certain extend, mostly becuase of my lack of
> > details here. I am beginning to think this may need a VB code instead.
> >
> >
> > Table1
> > Field1 Field2 Field3 Field4 ...
> > RC1: MedRec1 SOCDate1 CertDate1 Memo1
> >
> > Example:
> >
> > RC1: MedRec SOCDate CertDate Memo
> > 100 01/01/05 01/01/05 FirstCert Period in
> > 2005 for MR100
> > 100 01/01/05 03/01/05 SecondCert Period
> > in 2005 for MR100
> > 100 10/01/04 10/01/04 FirstCert Period in
> > 2004 for MR100
> > 100 10/01/05 12/01/05 SecondCert Period
> > in 2004 for MR100
> > 103 02/01/05 02/01/05 FirstCert Period in
> > 2005 for MR103
> >
> >
> > Output (perhaps via inner joint Query or VB?), shows only:
> >
> > RC1: MedRec SOCDate CertDate Memo
> > 100 01/01/05 01/01/05 FirstCert Period in
> > 2005
> > 100 01/01/05 03/01/05 SecondCert Period
> > in 2005
> > 103 02/01/05 02/01/05 FirstCert Period in
> > 2005 for MR103
> >
> > P.S.: I will need to be able to add records in the form after the
> > output as well, therefore, filtering may not work.
> >
> > If I had known this DB is going to transform into this, I would have
> > split this into 2 tables to begin with. Then, we won't have any
> > problem. I hate to have to go this route.
> >
> > Perry[/color]
>
> Perry,
>
> I still don't understand how you're getting your output. Sorry. Is
> any grouping done on the Memo or CertDate fields? I guess seeing two
> 100's for MedRec in your output threw me off track since you appeared
> to want the latest of some date for a particular MedRec value. Maybe
> explain in words how to get the output you want along with the example.
> Additionally, make sure I understand where RC1, RC2 etc. are coming
> from. If I understand how to get your output I may be able to create
> the editable query you want or suggest VBA alternatives.
>
> James A. Fortune
>[/color]