I have a form with a combobox(unbound) that allows the user to select a Person's name. The rowsource is
The afterupdate of the combobox updates 2 other textboxes with company name & location. I'm having a problem with the combobox showing up blank on all old records. If a new selection is made in the combobox, it updates the other textboxes correctly and displays the selection made...but the form is closed and we go back to that record the combobox is empty even thou the other 2 boxes are correctly displayed.
I tried to add Me.Refresh in the On Current and the On Load event procedure... the problem remained...
I also tried PersonId.Requery ... and got nothing..
PersonId is the Name of the combobox
Any suggestions anyone???
P.S. The form's record source is
Code:
SELECT DISTINCTROW [Contact].[PersonID], [Suffix] & " " & [FirstName] & " " & [MiddleName] & " " & [lastname] AS name, [Contact].[LocationID], [Contact].[CompanyID], * FROM Contact;
The afterupdate of the combobox updates 2 other textboxes with company name & location. I'm having a problem with the combobox showing up blank on all old records. If a new selection is made in the combobox, it updates the other textboxes correctly and displays the selection made...but the form is closed and we go back to that record the combobox is empty even thou the other 2 boxes are correctly displayed.
I tried to add Me.Refresh in the On Current and the On Load event procedure... the problem remained...
I also tried PersonId.Requery ... and got nothing..
PersonId is the Name of the combobox
Any suggestions anyone???
P.S. The form's record source is
Code:
SELECT DISTINCTROW [Company].[CompanyName] AS Comp_name, [Locations].[LocationName], [Locations].[LocationID], [Company].[CompanyID] FROM Company INNER JOIN Locations ON [Company].[CompanyID]=[Locations].[CompanyID];
[code]