Hi,
I hope someone is able to help me on this complex issue.
I'm sure there is a way to do this with code, but my skills have left me tied up in knots.
I have two tables - Interviews & Placements.
these tables have multiple foreign keys which pull information from other tables (CandidateID,ClientID etc).
I have designed queries and forms (datasheet view) which display all the values that I need, For example:
The interview form shows the following fields:
CandidateName;Company;consultant;1stInterviewDate;2ndInterviewDate;Offer;Accepted
the placements form shows the following fields:
PlacedCandidate;Company;Consultant;PlacementDate;Fee;
This query "qry_Interviews" populates these forms using the foreign keys:
CandidateID from candidates table
CompanyID from companies table
consultant from consultants table
Ideally what I'd like to happen, is when the "accepted" field is updated on the interviews form, the placements form opens as a pop up and is auto populated with the values (CandidateName;Company & consultant).
So far I have tried setting the value directly, i.e on the "on Open" event of the Placements form I entered:
Me.Txtcontactname = Forms!ISISnavigationMain!navigationSubform.Form!DS.Name
This does not work.
Should I be populating the placements form with the actual Foreign key values rather than the resolved names? Ideally I'd want the pop up placements form to display the actual names rather than just ID numbers.
is this possible? And if so do I need another query to pull this info together?
I'm very lost and only just started with Access VBA so any help would be hugely appreciated.
many thanks
John
I hope someone is able to help me on this complex issue.
I'm sure there is a way to do this with code, but my skills have left me tied up in knots.
I have two tables - Interviews & Placements.
these tables have multiple foreign keys which pull information from other tables (CandidateID,ClientID etc).
I have designed queries and forms (datasheet view) which display all the values that I need, For example:
The interview form shows the following fields:
CandidateName;Company;consultant;1stInterviewDate;2ndInterviewDate;Offer;Accepted
the placements form shows the following fields:
PlacedCandidate;Company;Consultant;PlacementDate;Fee;
This query "qry_Interviews" populates these forms using the foreign keys:
CandidateID from candidates table
CompanyID from companies table
consultant from consultants table
Ideally what I'd like to happen, is when the "accepted" field is updated on the interviews form, the placements form opens as a pop up and is auto populated with the values (CandidateName;Company & consultant).
So far I have tried setting the value directly, i.e on the "on Open" event of the Placements form I entered:
Me.Txtcontactname = Forms!ISISnavigationMain!navigationSubform.Form!DS.Name
This does not work.
Should I be populating the placements form with the actual Foreign key values rather than the resolved names? Ideally I'd want the pop up placements form to display the actual names rather than just ID numbers.
is this possible? And if so do I need another query to pull this info together?
I'm very lost and only just started with Access VBA so any help would be hugely appreciated.
many thanks
John