• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 455
  • Last Modified:

MS Access 2003 bind control to anothe control

I have a textbox that's bound to the selected item (column 2) of a combo box.

Is there any way to string together several columns?

I currently have this.

=[cmbContacts].[column](2)
0
lrbrister
Asked:
lrbrister
  • 2
1 Solution
 
Dale FyeCommented:
Have you tried:

=[cmbContacts].[column](2) & " " & [cmbContacts].[column](3)

or something like that?
0
 
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
Explain in more detail what you mean by 'several columns'.

You can have other text boxes, where in the AfterUpdate event of the combo box you have VBA code that goes something like this:

With me
   .txt_name = Me.cmbContacts.column(0)
   .txt_address = Me.cmbContacts.column(1)
   .txt_city = Me.cmbContacts.column(2)
end with

you get the idea..
0
 
lrbristerAuthor Commented:
Perfect. Thanks
0
 
Dale FyeCommented:
glad to help.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now