I have created a table: TblDVAssociate with 2 fields:
Field 1 Name
Field 2 Pin <--This is also the Primay Key as I do not want duplicate Pin Numbers
I have another table: TblMaster with 6 fields:
Field 1 ID (Auto Number)<-- This is the Primary key
Field 2 AssociateName
Field 3 ProjectName
Field 4 Totals
Field 5 TimeStart
Field 6 TimeStop
I have a table:TblProjec ts with 3 fields
Field 1 Master Number (AutoNumber) and Primary key
Field 2 Project Name
Field 3 Per Hour Goal
I am using a form (FrmProject) to update TblMaster:
The form has a field for Associate Name
A Combo box for Project name which is tied to TblProject allowing a specific project to be selected which in turn places the name of the selected project into the field ProjectName on TblMaster
A totals field which updates teh Totals field on TBLMaster with a number
A TimeStart and TimeStop field which I use a command button to enter the start time and another command button to enter the end time into TblMaster.
And finally an Update button which activates a macro to advance the record and place the collected data in the Tbl Master (this was done because I do not want people to be able to scroll through and see other data entered, but I needed a way to tell teh form to write to the TblMaster.
Now, for my question.
What I want to do is create a pop up which asks the associate to enter their "PIN", this will then grab the associated name from TblDVAssociate and place it on the FrmProject so that the associate sees their name and it will update into the AssociateName field on TblMaster.
I have spent the last few days trying to work out how I can make this happen but the answer eludes me.
I was able at one point make the AssociateName field on the form populate a name from the TblDVAssociate when the Pin was entered but it did not place the name on the TblMAster, as soon as I selected a Project Name fromm the drop down, the name vanished. (and subsequently, I have not been able to reproduce this so I am a little lost.
Field 1 Name
Field 2 Pin <--This is also the Primay Key as I do not want duplicate Pin Numbers
I have another table: TblMaster with 6 fields:
Field 1 ID (Auto Number)<-- This is the Primary key
Field 2 AssociateName
Field 3 ProjectName
Field 4 Totals
Field 5 TimeStart
Field 6 TimeStop
I have a table:TblProjec ts with 3 fields
Field 1 Master Number (AutoNumber) and Primary key
Field 2 Project Name
Field 3 Per Hour Goal
I am using a form (FrmProject) to update TblMaster:
The form has a field for Associate Name
A Combo box for Project name which is tied to TblProject allowing a specific project to be selected which in turn places the name of the selected project into the field ProjectName on TblMaster
A totals field which updates teh Totals field on TBLMaster with a number
A TimeStart and TimeStop field which I use a command button to enter the start time and another command button to enter the end time into TblMaster.
And finally an Update button which activates a macro to advance the record and place the collected data in the Tbl Master (this was done because I do not want people to be able to scroll through and see other data entered, but I needed a way to tell teh form to write to the TblMaster.
Now, for my question.
What I want to do is create a pop up which asks the associate to enter their "PIN", this will then grab the associated name from TblDVAssociate and place it on the FrmProject so that the associate sees their name and it will update into the AssociateName field on TblMaster.
I have spent the last few days trying to work out how I can make this happen but the answer eludes me.
I was able at one point make the AssociateName field on the form populate a name from the TblDVAssociate when the Pin was entered but it did not place the name on the TblMAster, as soon as I selected a Project Name fromm the drop down, the name vanished. (and subsequently, I have not been able to reproduce this so I am a little lost.
Comment