D
deannamch
I have a question about setting the record source of a form at the time the
form is opened.
Background: I need to clean up and modify an application. The application
currently only has one table and one template form for data entry. However a
separate copy of a selection query and a separate copy of the data entry form
have been created for each analyst in the office. The only difference
between the queries is the CurrentAnalyst criteria is set to one person’s
name. The only difference between the forms is the record source is set to a
different selection query. Currently the analysts open their copy of the
data entry form. They are able to apply and remove filters and do not lose
the initial criteria that limits the records to their own matters.
I didn’t set up the application this way and I would prefer not to have to
replicate changes across a dozen copies each time a change is made.
My first approach was to create a selection form where the user clicks a
button by their name. In the command click event I opened a copy of the form
where the record source is the table. I did this using the OpenForm method
of DoCmd and setting a WHERE condition. This works however the condition is
applied as a filter property. The user will lose the CurrentAnalyst criteria
if they remove the filter which is definitely not desirable.
Any suggestions would be appreciated for a way to proceed on being able to
keep the users limited to their own matters while still allowing them to
filter their own matters.
Thanks,
Deanna
form is opened.
Background: I need to clean up and modify an application. The application
currently only has one table and one template form for data entry. However a
separate copy of a selection query and a separate copy of the data entry form
have been created for each analyst in the office. The only difference
between the queries is the CurrentAnalyst criteria is set to one person’s
name. The only difference between the forms is the record source is set to a
different selection query. Currently the analysts open their copy of the
data entry form. They are able to apply and remove filters and do not lose
the initial criteria that limits the records to their own matters.
I didn’t set up the application this way and I would prefer not to have to
replicate changes across a dozen copies each time a change is made.
My first approach was to create a selection form where the user clicks a
button by their name. In the command click event I opened a copy of the form
where the record source is the table. I did this using the OpenForm method
of DoCmd and setting a WHERE condition. This works however the condition is
applied as a filter property. The user will lose the CurrentAnalyst criteria
if they remove the filter which is definitely not desirable.
Any suggestions would be appreciated for a way to proceed on being able to
keep the users limited to their own matters while still allowing them to
filter their own matters.
Thanks,
Deanna