Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

DBCombo.DataSource

Posted on 1999-06-23
3
Medium Priority
?
486 Views
Last Modified: 2013-12-25
I type "Set DBCombo1.DataSource=Data1"
Why has "Type mismatch" error?
How can I do?
0
Comment
Question by:vagg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Expert Comment

by:CraigLazar
ID: 1505671
Hi take out set and say this
Dbcombo1.datasource  = data1.recordsource
if that does not help then you will have to read in each record and add each in using the dbcombo1.additem

Craig
0
 

Author Comment

by:vagg
ID: 1505672
Can not use "Dbcombo1.datasource  = data1.recordsource "

0
 

Accepted Solution

by:
bavani earned 40 total points
ID: 1505673
I don't think Datasource is available at Runtime.  You can set that in Design Time.

Set the DBCombo datasource to data1 and datafield to the concerned field in design time.





0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…

715 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