VB5: DBList.RowSource won't work? 
Author Message
 VB5: DBList.RowSource won't work?


I have the following problem:
I display the content of a Database via a DBCombo and a DBList. For some

reason I've got to bind them to a Datafield at runtime. Unfortunatly
this doesn't work.

I've used the following Code (where "Datafield" is the name of - the
Datafield!) with the german version of VB5:

DBList.RowSource = "Datafield"
Error: Type mismatch

DBList.RowSource = Datafield.Name
Error: Type mismatch

String = Datafield.Name
DBList.RowSource = String
Error : Type mismatch

DBList.RowSource = Datafield
Error: Type mismatch

Following the documentation, the property RowSource has to be a string.
So the last error seems to be correct, for Datafield is an object. But
the other don't.
Who can help?

Gerd Riesselmann

PS: After solving this problem I want to create new DBCombos at runtime
(LOAD DBCombo(Index)). And all this new Combos need help by a Datafield.

Has anybody experience in creating new Datafields at runtime and binding

them to a DBList (for their name is the same for them all)...

Sun, 22 Apr 2001 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. VB5: DBList.RowSource won't work?

2. Why won't this work Dblist/ datacontrol?

3. rowSource + dataSource with DBList problem (VB5)--please help

4. Search and Replace Macro commands won't work from VB5 Application

5. I ran the VB5 ASW, but my app still won't work on other computers

6. vb4 code won't work in vb5

7. I ran the VB5 ASW, but my app still won't work on other computers

8. Why won't this work - AppActivate VB5 ?

9. MSScript Control won't work with VB5

10. Enterprise Controls won't work in vb5

11. DbList Rowsource

12. simple ftp app developed on win98 won't work on win nt


Powered by phpBB® Forum Software