B
Balfour211
I am using Access 2003
I have a subform that lists employees by name. The data source for that
subform is from an "Index" table that lists all employees. There are usually
a total of at least 14 employees in the Index, and every day a new entry is
started with this form having to list all 14 employees. Right now, instead
of going down the list and entering each of the 14 employees, I hard code the
filling in of the list with a "Value" (Employee = "Smith").
DoCmd.GoToRecord , , acNext
Employee= "Smith"
DoCmd.GoToRecord , , acNext
Employee= "Jones"
DoCmd.GoToRecord , , acPrevious, 1
Status.SetFocus
The "acPrevious" command takes me back to the first entry. If I had 14
names, the value would be 13.
The problem with this is that I have to put the Employees name in the code.
This makes the changing of employees a "recoding task" instead of just
changing the Index table.
Question: Is there a way to have each of the names listed in the Index
table automatically fill in the employee fields of the continuous form? If I
could hit a command button, I would end up with 14 rows with the Employee
field filled in with the names out of the Employee Index table. Just for
clarification, there is another field on this form that goes with the
Employee's name. That other filed is "Status".
Thanks in advance,
Balfour211
I have a subform that lists employees by name. The data source for that
subform is from an "Index" table that lists all employees. There are usually
a total of at least 14 employees in the Index, and every day a new entry is
started with this form having to list all 14 employees. Right now, instead
of going down the list and entering each of the 14 employees, I hard code the
filling in of the list with a "Value" (Employee = "Smith").
DoCmd.GoToRecord , , acNext
Employee= "Smith"
DoCmd.GoToRecord , , acNext
Employee= "Jones"
DoCmd.GoToRecord , , acPrevious, 1
Status.SetFocus
The "acPrevious" command takes me back to the first entry. If I had 14
names, the value would be 13.
The problem with this is that I have to put the Employees name in the code.
This makes the changing of employees a "recoding task" instead of just
changing the Index table.
Question: Is there a way to have each of the names listed in the Index
table automatically fill in the employee fields of the continuous form? If I
could hit a command button, I would end up with 14 rows with the Employee
field filled in with the names out of the Employee Index table. Just for
clarification, there is another field on this form that goes with the
Employee's name. That other filed is "Status".
Thanks in advance,
Balfour211