Hi Guys, sorry if this is a dumb question, but here goes.
I have a form with a Combobox which populates a customers address:
Private Sub cboCustomerAddress_Change()
Me.Address1.Value = Me.cboCustomerAddress.Column(2)
Me.Address2.Value = Me.cboCustomerAddress.Column(3)
Me.Town.Value = Me.cboCustomerAddress.Column(4)
Me.Postcode.Value = Me.cboCustomerAddress.Column(5)
Me.Country.Value = Me.cboCustomerAddress.Column(6)
End Sub
I also have a button that opens another form to add new addresses, could anyone tell me how to requery the Combobox to show newly added addresses when I save the "New Address" form. I've tried a Requery Macro with Forms!frmMainForm!cboCustomerAddress which returns an error "There is no field named Forms!frmMainForm!cboCustomerAddress in the current record."
Grateful for any help.
Thanks
I have a form with a Combobox which populates a customers address:
Private Sub cboCustomerAddress_Change()
Me.Address1.Value = Me.cboCustomerAddress.Column(2)
Me.Address2.Value = Me.cboCustomerAddress.Column(3)
Me.Town.Value = Me.cboCustomerAddress.Column(4)
Me.Postcode.Value = Me.cboCustomerAddress.Column(5)
Me.Country.Value = Me.cboCustomerAddress.Column(6)
End Sub
I also have a button that opens another form to add new addresses, could anyone tell me how to requery the Combobox to show newly added addresses when I save the "New Address" form. I've tried a Requery Macro with Forms!frmMainForm!cboCustomerAddress which returns an error "There is no field named Forms!frmMainForm!cboCustomerAddress in the current record."
Grateful for any help.
Thanks