Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subform No Duplicates 1

Status
Not open for further replies.

Elvis72

Technical User
Dec 6, 2007
211
US
I have a subform here:

SELECT TblProjectInformation.ProjectID, TblStaffRequirements.Title, TblProjectInformation.[Title ID], TblProjectInformation.WorkerID, TblProjectInformation.[Job/ProposalNo], TblProjectInformation.[Requisition No], TblProjectInformation.[Mobilization Date], TblProjectInformation.[Demobilization Date], TblProjectInformation.[HR Classification], TblResumes.[First Name], TblResumes.[Last Name], TblResumes.[Cell Phone], TblResumes.Email, TblResumes.[Resume Link] FROM TblResumes INNER JOIN (TblStaffRequirements INNER JOIN TblProjectInformation ON TblStaffRequirements.[Title ID]=TblProjectInformation.[Title ID]) ON TblResumes.WorkerID=TblProjectInformation.WorkerID;

Until I put WorkerID as a No Duplicates field in my TblProjectInformation the form worked fine except it allowed the same worker to be entered multiple times in the same project.

NOW...when I use the drop down for WorkerID to select the person the First and Last Name do not Auto-Populate, BUT when I go back in its there?

Can't figure out what I'm doing wrong???

Thanks so much for your help!~
 
How are ya Elvis72 . . .

You say you added [blue]WorkerID[/blue] to prevent duplicates, yet [purple]your able to add the same worker multiple times.[/purple] Ya got me there! [surprise]

As far as the combobox is concerned, have you tried to requery the combobox?
Code:
[blue]   Me![[purple][B][I]ComboboxName[/I][/B][/purple]].Requery[/blue]

[blue]Your Thoughts? . . .[/blue]

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
Good Morning Ace!~

Before I placed the no duplicates criteria on the WorkerID field it did allow duplicates but it also auto-populated the First and Last Name fields.

Well, I have tried putting it in AfterUpdate and OnChange with nooooo success?

But if I have the form open and hit Shift F9 it does it...but can't get it to do it after I make a selection in the Combobox?

 
OK...was looking through posts about requery...

Would I not want to requery the First and Last Name fields instead of the combobox?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top