Combo box values put into a text box (1 Viewer)

david.paton

Registered User.
Local time
Today, 13:11
Joined
Jun 26, 2013
Messages
338
I have a combo box to select the town on the form frmCarers. I want a 2 text boxes below, txtstate and txtpostcode to be automatically updated when I select a town. I also need them to not disappear if I am to close and open the form.
 

Attachments

  • Carers.v40.accdb.zip
    223.1 KB · Views: 41

david.paton

Registered User.
Local time
Today, 13:11
Joined
Jun 26, 2013
Messages
338
I worked it out. I just put the following code on the after update event from the combo box and in the on form load event.

Me.txtPostCode = Me![cboTown].Column(2)
Me.txtState = Me![cboTown].Column(3)
 

Users who are viewing this thread

Top Bottom