Click here to Skip to main content
15,898,708 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: VB.Net Print Queue Enumeration Pin
Tim Carmichael18-Apr-07 7:31
Tim Carmichael18-Apr-07 7:31 
GeneralRe: VB.Net Print Queue Enumeration Pin
SQLDiablo18-Apr-07 7:52
SQLDiablo18-Apr-07 7:52 
AnswerRe: VB.Net Print Queue Enumeration Pin
SQLDiablo18-Apr-07 8:55
SQLDiablo18-Apr-07 8:55 
Questionhow to insert an image from VB to an access database Pin
EvScott17-Apr-07 4:12
EvScott17-Apr-07 4:12 
AnswerRe: how to insert an image from VB to an access database Pin
Sathesh Sakthivel17-Apr-07 5:27
Sathesh Sakthivel17-Apr-07 5:27 
Questiondesign the UI Pin
ciacia17-Apr-07 4:07
ciacia17-Apr-07 4:07 
AnswerRe: design the UI Pin
MatrixCoder17-Apr-07 5:18
MatrixCoder17-Apr-07 5:18 
Questionadd data to database Pin
peteyshrew17-Apr-07 4:03
peteyshrew17-Apr-07 4:03 
i think i have made the connection to the database. i need to know how to write the code to add and ID, surname and forename to the database. don't have a clue how to do this. can you help me?


(this is the connection)

Imports System.Data.OleDb
Public Class cust
Public conn As OleDbConnection
Public comm As OleDbCommand
Public dr As OleDbDataReader
Public da As OleDbDataAdapter


Private Sub cust_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
conn = New OleDbConnection 'establishes that conn is a new connection
conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\PCbank.mdb" 'the name of the connection (name of the database on the end)
conn.Open() 'opens the connection

comm = New OleDbCommand 'establishes that comm is a new command
comm.Connection = conn 'the connection for the command is the connection specified
comm.CommandType = CommandType.Text 'the commands are in text

End Sub
AnswerRe: add data to database Pin
Tarakeshwar Reddy17-Apr-07 4:52
professionalTarakeshwar Reddy17-Apr-07 4:52 
AnswerRe: add data to database Pin
manni_n17-Apr-07 6:56
manni_n17-Apr-07 6:56 
AnswerRe: add data to database Pin
klaydze17-Apr-07 21:48
klaydze17-Apr-07 21:48 
QuestionHow to run video file in vb.net windows application? Pin
balamurugan8217-Apr-07 3:50
balamurugan8217-Apr-07 3:50 
AnswerRe: How to run video file in vb.net windows application? Pin
MatrixCoder17-Apr-07 5:00
MatrixCoder17-Apr-07 5:00 
QuestionHow can we capture the incoming net send message in vb.net? Pin
vijay258317-Apr-07 3:39
vijay258317-Apr-07 3:39 
AnswerRe: How can we capture the incoming net send message in vb.net? Pin
Dave Kreskowiak17-Apr-07 7:19
mveDave Kreskowiak17-Apr-07 7:19 
QuestionSHDocVw.ShellWindows .Quit does not stop process Pin
SJR_117-Apr-07 2:41
SJR_117-Apr-07 2:41 
AnswerRe: SHDocVw.ShellWindows .Quit does not stop process Pin
Dave Kreskowiak17-Apr-07 6:43
mveDave Kreskowiak17-Apr-07 6:43 
AnswerRe: SHDocVw.ShellWindows .Quit does not stop process Pin
shreekar17-Apr-07 19:09
shreekar17-Apr-07 19:09 
QuestionWScript.CreateObject: Could not locate automation class named "wshAPIToolkitObject.ucATO" Pin
programvinod17-Apr-07 1:19
programvinod17-Apr-07 1:19 
AnswerRe: WScript.CreateObject: Could not locate automation class named "wshAPIToolkitObject.ucATO" Pin
Dave Kreskowiak17-Apr-07 6:46
mveDave Kreskowiak17-Apr-07 6:46 
Questionneed help on database connection! Pin
peteyshrew17-Apr-07 0:42
peteyshrew17-Apr-07 0:42 
AnswerRe: need help on database connection! Pin
ganero17-Apr-07 1:25
ganero17-Apr-07 1:25 
GeneralRe: need help on database connection! Pin
peteyshrew17-Apr-07 1:32
peteyshrew17-Apr-07 1:32 
GeneralRe: need help on database connection! Pin
ganero17-Apr-07 1:50
ganero17-Apr-07 1:50 
GeneralRe: need help on database connection! Pin
peteyshrew17-Apr-07 2:05
peteyshrew17-Apr-07 2:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.