I have a table, PersonnelInformation where I have 2 fields, Name, Title. I have a form with a combo box and an edit box. When the user selects a name on the combo box. I want the title to show up in the edit box. I tried the following expression but it does not work:=[EmployeeName].[OnChange]=DLookUp("[PersonnelInformationTable.Title]","PersonnelInformationTable","[[PersonnelInformationTable.Name] =" & [Forms]![EmployeesFrm]![EmployeeName])
This expression is attached to the edit box. I have also tried the following VBA method:Private Sub EmployeeName_Change() Dim Title As String Title = DLookup("[PersonnelInformationTable.Title]", "PersonnelInformationTable", "[PersonnelInformationTable.Name] = " & Forms!EmployeesFrm!EmployeeName) Forms!EmployeesFrm!EmployeeTitle = TitleEnd Sub
What Am I doing wrong, and how can I accomplish this. I am now just learning access.Mike BEdited by - MikeB on 07/10/2002 14:34:33