Solved

ComboBox derived from 2 datasources

Posted on 2009-04-01
4
215 Views
Last Modified: 2012-05-06
I have a Input ComboBox with the list bound to a sql binding source "bsStaffList" and I want to retreive and save the value from and to the customer binding source bsCustomerDetails - StaffID

Cant seem to work out how to do that. I['ve tried a few combo-nations :) no sucess so far.

Also tried values in  SelectedIndeax and SelectedValue with no sucess.

Can anyone help ?


Me.ipCbCSO.DataSource = "bsStaffList"
        Me.ipCbCSO.DisplayMember = "name"
        Me.ipCbCSO.ValueMember = "bsCustomerDetails - StaffID"  <<- ????

Open in new window

0
Comment
Question by:siacom
  • 2
  • 2
4 Comments
 
LVL 48

Accepted Solution

by:
jpaulino earned 500 total points
ID: 24045465
You cannot do that way!
You have do define the DisplayMember and ValueMember for the DataSource you have defined and not another one.
0
 

Author Comment

by:siacom
ID: 24045477
so you cant use 2 datasources ? 1 for dispolay and 1 for value ?
0
 
LVL 48

Expert Comment

by:jpaulino
ID: 24045504
No, you have to join the information in only one datasource
0
 

Author Comment

by:siacom
ID: 24045639
hmmm.... not something I want to do right now... might as well not have a combo.
thanks anyway.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

PL/SQL can be a very powerful tool for working directly with database tables. Being able to loop will allow you to perform more complex operations, but can be a little tricky to write correctly. This article will provide examples of basic loops alon…
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question