N
najah via AccessMonster.com
Hey all,
I've designed a database to track the time and tasks of 9 employees. I've
created a form that allows them to enter their time and detailed task.
I've also created various queries, in order to generate bi weekly reports.
Initially, this was a simple task, however towards the end It started
becoming a complex job.
I created a switchboard, via switchboard mgr that allows them to enter their
time, which opens the timesheet form in add mode, their is also a command
button that allows them to edit their timesheet in the event they ran into an
error after running the report.
In the beginning when the edit timesheet button was clicked, an employee
could view everyone's timesheet, and that did not need to happen. I wanted
only the supervisors to have those rights. This is what I did:
I created nine copies of the timesheet form and attatched the employees
initials to the end. i.e. TimesheetforJCL. Then I attached an OnOpen event
such as DoCmd.OpenForm "Timesheetforjcl", , , "[EmployeeID]='jcl'" to each
form. When I opened the forms individually the filter worked fine.
This is where I need help.
When I split the database, I thought that when I distribute the front end
copies , I'd just be able to attach that specific filtered form for that
employee to the edit timesheet command button on the switchboard. However it
changes the button's command on all of the fe copies. What did I do wrong
and how can I fix this to work the way I need it to work. Please explain
and remember I am a novice,as you can tell.
I've designed a database to track the time and tasks of 9 employees. I've
created a form that allows them to enter their time and detailed task.
I've also created various queries, in order to generate bi weekly reports.
Initially, this was a simple task, however towards the end It started
becoming a complex job.
I created a switchboard, via switchboard mgr that allows them to enter their
time, which opens the timesheet form in add mode, their is also a command
button that allows them to edit their timesheet in the event they ran into an
error after running the report.
In the beginning when the edit timesheet button was clicked, an employee
could view everyone's timesheet, and that did not need to happen. I wanted
only the supervisors to have those rights. This is what I did:
I created nine copies of the timesheet form and attatched the employees
initials to the end. i.e. TimesheetforJCL. Then I attached an OnOpen event
such as DoCmd.OpenForm "Timesheetforjcl", , , "[EmployeeID]='jcl'" to each
form. When I opened the forms individually the filter worked fine.
This is where I need help.
When I split the database, I thought that when I distribute the front end
copies , I'd just be able to attach that specific filtered form for that
employee to the edit timesheet command button on the switchboard. However it
changes the button's command on all of the fe copies. What did I do wrong
and how can I fix this to work the way I need it to work. Please explain
and remember I am a novice,as you can tell.