twice300
Technical User
- Jan 31, 2007
- 19
To all,
Remou helped me on another thread in which I needed to condition a subform.
Now that I have the subform available depending on the value of a field on the main form, I'm working on something else and I'm stuck.
I had the subform working, but I had the subform select the employee using a lookup to the Clerks table.
Since this is a subform, I'd like to have the EmployeeName in the subform set automatically to the Clerks.Name field from the main form. I've searched and read many articles but can't get it to work.
I read an article that mentioned that if I set the link master/child to the corresponding fields, this would work. I have set the fields Clerk.Name = Children.EmployeeName, but when I go into the subform, the Children.EmployeeName is not set automatically with the contents of the Clerk.Name field, actually it reads as "frmClerks" (this is the name of the main form).
Some background info for you.
Employee table fields:
Clerks Table has:
Name as text, here is where I store the employee name
Children as Yes/No
Children Table has:
ChildId as AutoNumber
EmployeeName as text
ChildName
ChildBirthDate
I have a one to many relationship for these two tables, tied by the Name - EmployeeName fields.
If I'm confusing, sorry, I know this is long, but I'm stuck.
TIA
Twice300
Remou helped me on another thread in which I needed to condition a subform.
Now that I have the subform available depending on the value of a field on the main form, I'm working on something else and I'm stuck.
I had the subform working, but I had the subform select the employee using a lookup to the Clerks table.
Since this is a subform, I'd like to have the EmployeeName in the subform set automatically to the Clerks.Name field from the main form. I've searched and read many articles but can't get it to work.
I read an article that mentioned that if I set the link master/child to the corresponding fields, this would work. I have set the fields Clerk.Name = Children.EmployeeName, but when I go into the subform, the Children.EmployeeName is not set automatically with the contents of the Clerk.Name field, actually it reads as "frmClerks" (this is the name of the main form).
Some background info for you.
Employee table fields:
Clerks Table has:
Name as text, here is where I store the employee name
Children as Yes/No
Children Table has:
ChildId as AutoNumber
EmployeeName as text
ChildName
ChildBirthDate
I have a one to many relationship for these two tables, tied by the Name - EmployeeName fields.
If I'm confusing, sorry, I know this is long, but I'm stuck.
TIA
Twice300