Here I am with yet another problem.
I want to add data in a tree viewer controller dynamically from my database.
I am using ms-access as my back-end
Please help me ASAP.
Thank you in advance
VB6 will "understand" the two lines above as the same thing, and you'll not get an error. If you pass a control for a sub or a function, instead, you will probably get strange fenomenous... your program can poltergeist the screen... ;)
Back on Earth, the line TreeView1.Nodes.Item doesn't point to a method or property, and you may get errors.
Try this little change:
If Not objLista.SelectedItem Is Nothing Then
- SelectedItem points to the selected item (dahn...) in the TreeView control;
- Key is the key defined for a single item (must be unique);
- Text is the text displayed for user.
And please take care about SQL syntax.
If you want to search records that match a criteria OR another criteria, you don't use AND operator...
If optcombined.Value = True Then
Set adorsRAM = New ADODB.Recordset
For i = 0 To Node.Selected
sSQL = "SELECT * FROM Master_final WHERE windows='" & Node.Text & "' and office ='" & Node.Text & "'"
this code is showing an error
object variable or with block variable is not set.
I am writing a java program that needs to execute shell commands, so I wrote a function that would take the command to execute as a string (ie: "mkdir ~/Folder1") and execute that command with the shell. Here is the function:
Runtime run = Runtime.getRuntime();
Process pr = ...
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.