Hi Guys,
Another question. I have a combobox named PPQOfficer whose source is a query:
I want the selection from this combobox to fill three other textboxes. This is the code I've tried, based on searches here, and I can't get it to work except for the first text box. I'm sure I'm overlooking something obvious.
Any help is appreciated.
Another question. I have a combobox named PPQOfficer whose source is a query:
Code:
SELECT tbl_lookup_FEDInfo.PPQ_Off, tbl_lookup_FEDInfo.FEDAgency, tbl_lookup_FEDInfo.FEDAddress, tbl_lookup_FEDInfo.FEDCitySTZip
FROM tbl_lookup_FEDInfo;
I want the selection from this combobox to fill three other textboxes. This is the code I've tried, based on searches here, and I can't get it to work except for the first text box. I'm sure I'm overlooking something obvious.
Code:
Private Sub PPQ_Officer_AfterUpdate()
Me.txtfedagency = Me.PPQ_Officer.Column(1)
Me.txtfedagency.Requery
Me.txtFEDAddress = Me.PPQ_Officer.Column(2)
Me.txtFEDAddress.Requery
Me.txtFEDCitySTZip = Me.PPQ_Officer.Column(3)
Me.txtFEDCitySTZip.Requery
End Sub
Any help is appreciated.