V
Valerie
I have a database for tracking items and money given to needy clients. I
have a Search form I designed based on Allen Browne's tips with entry text
boxes on top, and a filtered continuous form below. Each record in the
continuous form has an "Open" button which opens the Client's record,
frmClientsSearch. My frmClientsSearch is based on the Clients table, with a
subform based on the AddKids table and another subform based on a Referrals
query (First, money from each church is summed by referral, then a second
query pulls all the Refferal data with the total included).
Everything was working fine until I installed it on a wireless network on
Sunday, and I noticed the query was running very slowly. It turns out the
query is going through all the records in the database to sum the amounts,
and then selecting the records to display. I would like to limit the query
to search based on Client_Number, but I can't figure out how to refer to the
Client Number on the selected record on the continuous form of the search
record. In my Open Form button, it uses "[Client_Number] = " &
Me.Client_Number. I tried putting Me.Client_Number in the Criteria field for
the queries, but it does not recognize it (I get a parameter request). I
also tried adding the Client Number as OpenArgs in the OpenForm procedure,
but I can't get the query to link to that either. What is the proper way to
do this?
Thank you,
Valerie Terbush
have a Search form I designed based on Allen Browne's tips with entry text
boxes on top, and a filtered continuous form below. Each record in the
continuous form has an "Open" button which opens the Client's record,
frmClientsSearch. My frmClientsSearch is based on the Clients table, with a
subform based on the AddKids table and another subform based on a Referrals
query (First, money from each church is summed by referral, then a second
query pulls all the Refferal data with the total included).
Everything was working fine until I installed it on a wireless network on
Sunday, and I noticed the query was running very slowly. It turns out the
query is going through all the records in the database to sum the amounts,
and then selecting the records to display. I would like to limit the query
to search based on Client_Number, but I can't figure out how to refer to the
Client Number on the selected record on the continuous form of the search
record. In my Open Form button, it uses "[Client_Number] = " &
Me.Client_Number. I tried putting Me.Client_Number in the Criteria field for
the queries, but it does not recognize it (I get a parameter request). I
also tried adding the Client Number as OpenArgs in the OpenForm procedure,
but I can't get the query to link to that either. What is the proper way to
do this?
Thank you,
Valerie Terbush