User Profile
Collapse
-
Oracle data base of the company... -
-
IS THIS CODE CORRECT TO CONNECT TO SQL DATABASE
Con = New Odbc.OdbcConnec tion("Provider= Microsoft.Jet.O dbc.4.0;data source=" & kpi_database & "")
Sql = "SELECT [Comp_ItemNumber] FROM [Components] ORDER BY [Comp_ItemNumber] Asc"
Cmd = New Odbc.OdbcComman d(Sql, Con)...Leave a comment:
-
Thanks for replying
When i debug these are the two errors i came across and also i used debug.print Category(Column s).Because its showing declaration error when i use debug.print Category
Error 1 Name 'CmbBoxMan' is not declared. C:\Documents and Settings\naresh \Desktop\VB COMBO BOX WITH SQL DATA SOURCE\VB COMBO BOX WITH SQL DATA SOURCE\Form1.vb 13 9 VB COMBO BOX WITH SQL DATA SOURCE
Error 2 Name 'Database'...Leave a comment:
-
VB.NET: How to populate combo box with database item
Hi all,
I am new to VB .net.
Iam trying to populate the database item into combo box.
Database Type:SQL(ODBC)
My code retuns no value in combo box
[CODE=vbnet]Public Class Form1
Private Sub ComboBox1_Selec tedIndexChanged (ByVal sender As System.Object, ByVal e As System.EventArg s) Handles ComboBox1.Selec tedIndexChanged
Dim Cmd As Odbc.OdbcComman d
Dim Con As Odbc.OdbcConnec tion...
No activity results to display
Show More
Leave a comment: