B
Bill MItchell
Hi,
I have created a DISTINCT query based upon various search
paramaters. The query is returning a list of "Contact
ID" numbers from my table "MAIN: Contact"
I want my continuous list form to refresh and show only
these records. I can do this by setting
the .RecordSource property of my form to my new query
like so:
Forms![CONTACT:]![CONTACT: List].form.RecordSource
= "REC: Search | Contact (All)"
This works, however, because my query is DISTINCT (it has
to be for various reasons), I cannot then edit any of my
records. This is a problem.
It seems the best solution would be to use the
ApplyFilter procedure to show me only the records that
equate to the "Contact ID" field in my query.
Problem is, I have no idea how to do this.
What I need is just the simple code to say, Ok, I have
this query named "REC: Search | Contact (All)". I want
to use this as a filter and show only those records in
that query on my continuous form. I need to be able to
edit those records even though my query is DISTINCT.
I suppose I just want to put a button on my form that I
can click and it will make all this happen.
If anyone can help me would be greatly appreciated.
I have created a DISTINCT query based upon various search
paramaters. The query is returning a list of "Contact
ID" numbers from my table "MAIN: Contact"
I want my continuous list form to refresh and show only
these records. I can do this by setting
the .RecordSource property of my form to my new query
like so:
Forms![CONTACT:]![CONTACT: List].form.RecordSource
= "REC: Search | Contact (All)"
This works, however, because my query is DISTINCT (it has
to be for various reasons), I cannot then edit any of my
records. This is a problem.
It seems the best solution would be to use the
ApplyFilter procedure to show me only the records that
equate to the "Contact ID" field in my query.
Problem is, I have no idea how to do this.
What I need is just the simple code to say, Ok, I have
this query named "REC: Search | Contact (All)". I want
to use this as a filter and show only those records in
that query on my continuous form. I need to be able to
edit those records even though my query is DISTINCT.
I suppose I just want to put a button on my form that I
can click and it will make all this happen.
If anyone can help me would be greatly appreciated.