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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ComboBox Syntax for Access 97

Status
Not open for further replies.

databasesrus

Technical User
May 29, 2003
35
US
I am working with Access 97 and havent' in a long time. I can't remember the wording to have the combo box selection populate the text box. It is something like

If Not IsNull(combo10) Then text1.value = combo10.column(2)

But this is off somehow because it is debugging every time i try this. Can someone please refresh my failing memory?

Thank you!
 
Hi,

I created a combo box linked to a table with 2 fields in it and a text box. This code worked for me -

If Not IsNull(Me.Combo10) Then Me.Text1.Value = Me.Combo10.Column(1)

Column(1) being the second field Column(0) being the first.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top