Solved

ComboBox derived from 2 datasources

Posted on 2009-04-01
4
213 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
If you find yourself in this situation “I have used SELECT DISTINCT but I’m getting duplicates” then I'm sorry to say you are using the wrong SQL technique as it only does one thing which is: produces whole rows that are unique. If the results you a…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

746 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now