|
-
Jul 31st, 2000, 03:07 AM
#1
Thread Starter
Member
How can i bind a control (List or Combo) to a Data control in some other form in the same application
-
Jul 31st, 2000, 07:29 AM
#2
Lively Member
Try this.
For ADO
Code:
Set Combo1.DataSource = Form1.Adodc1
For DAO
Code:
Set Combo1.DataSource = Form1.Data1
You'll also have to set the DataField property of the control.
Dr_Evil
Senior Programmer
VS6 EE
VS.NET EA
-
Aug 1st, 2000, 12:48 AM
#3
Thread Starter
Member
I tried this before I asked the question for the first time, but I get the message during comiplation: Method or data member not found, which points to DataSource property of the control. Also Help tells me that DataSource is not available at runtime. Maybe it's my version of VB - 5.0 SP3?
-
Aug 1st, 2000, 01:48 AM
#4
Well ....
AndrejZ,
Your question is correct. The DataSource property can only be assigned during design time and not in runtime. There is nothing wrong with your VB5.
And given that, there does not seem to be a solution to your problem, because at design time, you cannot access another form's controls.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|