VB 6.0 - Data Binding in vb 6.0
Asked By Prakash Thirumoorthy
02-Feb-10 03:22 AM
Hi Experts,
I am using Vb6.0. i need to bind a data field into combobox.
whether the following coding i run and it shows error like unable to bind to field or datamemer "NameField"
query=" Select Id,NameField from Table1"
RS.Open Query, Con, 1, 3
Set Combo1.DataSource = RS
Combo1.DataField = "NameField"
Combo1.DataMember = "NameField"
pls anyone help me....
paresh tank replied to Prakash Thirumoorthy
Hi Prakash,
What kind of recordset are you using in the data environment.
Some recordsets do not pick up changes to the data.
Have you refreshed the recordset?
Nithin Rai replied to Prakash Thirumoorthy
Data Member should be set first and then Data Field
Prakash Thirumoorthy replied to Nithin Rai
i did that also, but the same error has occuured
Prakash Thirumoorthy replied to paresh tank
actually i m using adodb environment
Nithin Rai replied to Prakash Thirumoorthy
when we do it in design mode,
data source = connection object
data member = command object
data field = Filed which is retrieved using command
DataBase and form problem .NET Framework Hi everybody, VB.6 - I am working on a project that is actually a college application, this is the first time i use VB and i am using VB-6 some of the reader who tried to help me in the past told me that that you can not click on it neither edit it? Thank you all in advance. VB.NET Discussions SQL Express (1) VB (1) StudentID (1) AutoIncrement (1) DataBase (1) Identity (1) Recordsets (1) F31cb007 (1) Hi Totti when I use an access table for stuff. Question 2: Take a look at the binding source. < bindingsource.movenext() / movelast . . > (written in notepad ) The binding source can be used to go
binding collection error i am using vb 6 and access database I am getting binding collection error field not updatable, bound property name: text, field name :vat while saving and too only for few invoices it is not consistent we have used adodc control for binding.how to resolve it thanks in advance Is the field vat a calculated field in
Spying on VB 6 C++ / VB I just (I think) need to know what VB 6 does for the one line: Dim Document As New MSHTML.HTMLDocument The answer to that newsgroup but I am asking if there is a tool that could show me what VB does to create a HTML document. I have confirmed that VB 6 does create a skeleton document when that one statement is executed and I am unable
VB or C? .NET Framework Fact Poll I made the transition from (Borland) C++ to VB.NET around 2004. I have been happy with the choice. I find I can focus more on the problem and less on being "tidy" with VB. But, I fear that many don't take VB.NET seriously, particularly in scientific programming. They ask; "What do you code in?" and you say; I also fear that the technological tide may turn away from VB back towards C - sending VB the way of the Sony betamax, Mac, and Dodo. What are the facts? What are be using the most vital language. What better place to ask? mark b C# Discussions VB.NET (1) WPF (1) WCF (1) OP (1) HR (1) GC (1) Visual (1) PI C, right? Because if you do, in fact, mean C, then there are tremeandous differences. VB .NET is a .NET language (obviously) and so all the advantages of .NET vs. COM