Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RECORDS FROM NEXT COLUMN APPEAR IN FORM TEXT BOX

Status
Not open for further replies.

baybie

IS-IT--Management
Oct 5, 2002
68
GB
I have a table called centres which has 4 columns 2 of which are called 'State' and 'Collection Centre'.
I have now created a form from this table, the state and Collection Centre boxes are "combo boxes" and would like when a state is selected, the Collection Centre combo box will automatically display the centres located in the selected state.
I tried something like this in the After Update command:

Private Sub State_AfterUpdate()
Me![Collection Centre] = Me![State].Column(2)
End Sub

Didin't work at all, kept getting various errors like "Cannot the field 'state' specified in your command
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top