Click here to Skip to main content
15,923,006 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How I can connect VB.net to SQL Server 2005 Express? Pin
ATC14-Mar-07 9:14
ATC14-Mar-07 9:14 
QuestionScreenSaver's child process dies a-borning Pin
jim_taylor13-Mar-07 8:50
jim_taylor13-Mar-07 8:50 
AnswerRe: ScreenSaver's child process dies a-borning Pin
Marcus J. Smith13-Mar-07 9:05
professionalMarcus J. Smith13-Mar-07 9:05 
AnswerRe: ScreenSaver's child process dies a-borning Pin
jim_taylor13-Mar-07 12:16
jim_taylor13-Mar-07 12:16 
GeneralRe: ScreenSaver's child process dies a-borning Pin
Marcus J. Smith14-Mar-07 3:05
professionalMarcus J. Smith14-Mar-07 3:05 
GeneralRe: ScreenSaver's child process dies a-borning Pin
jim_taylor14-Mar-07 4:02
jim_taylor14-Mar-07 4:02 
GeneralRe: ScreenSaver's child process dies a-borning Pin
Marcus J. Smith14-Mar-07 9:45
professionalMarcus J. Smith14-Mar-07 9:45 
Questionadding to access database Pin
peteyshrew13-Mar-07 6:54
peteyshrew13-Mar-07 6:54 
right now i'm trying to add data to a database. i think i'm almost their but get this error message

"Property access must assign to the property or use its value"

this is what code i got


Imports System.Data.OleDb
Public Class Cust
Inherits System.Windows.Forms.Form
Dim cn As OleDbConnection
Dim cmd As OleDbCommand
Dim dr As OleDbDataReader
Dim icount As Integer
Dim str As String




Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
Try
cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\PCBank.mdb;")
cn.Open()
str = "insert into customer values(" & CInt(tbID.Text) & ",'" & tbSur.Text & "','" &
tbFor.Text & "')"

'string stores the command and CInt is used to convert number to string
cmd = New OleDbCommand(str, cn)
icount = cmd.ExecuteNonQuery
MessageBox.Show(icount)
'displays number of records inserted
Catch
End Try
cn.Close()
End Sub

End Class


can anybody enliten me?
AnswerRe: adding to access database Pin
DaveRRR13-Mar-07 9:18
DaveRRR13-Mar-07 9:18 
QuestionHow can I call properties a run time created button? Pin
JUNEYT13-Mar-07 6:20
JUNEYT13-Mar-07 6:20 
AnswerRe: How can I call properties a run time created button? Pin
Guffa13-Mar-07 7:37
Guffa13-Mar-07 7:37 
AnswerRe: How can I call properties a run time created button? Pin
testy_proconsul13-Mar-07 7:40
testy_proconsul13-Mar-07 7:40 
GeneralRe: How can I call properties a run time created button? Pin
JUNEYT13-Mar-07 7:53
JUNEYT13-Mar-07 7:53 
AnswerRe: How can I call properties a run time created button? Pin
Guffa13-Mar-07 10:08
Guffa13-Mar-07 10:08 
GeneralRe: How can I call properties a run time created button? Pin
testy_proconsul13-Mar-07 13:00
testy_proconsul13-Mar-07 13:00 
QuestionPrinting a form's text fields Pin
Central_IT13-Mar-07 5:50
Central_IT13-Mar-07 5:50 
AnswerRe: Printing a form's text fields Pin
Duncan Edwards Jones13-Mar-07 7:44
professionalDuncan Edwards Jones13-Mar-07 7:44 
QuestionHow can I detect which button is clicked on the form? Pin
JUNEYT13-Mar-07 5:02
JUNEYT13-Mar-07 5:02 
AnswerRe: How can I detect which button is clicked on the form? [modified] Pin
M-Hall13-Mar-07 5:28
M-Hall13-Mar-07 5:28 
GeneralRe: How can I detect which button is clicked on the form? Pin
JUNEYT13-Mar-07 5:34
JUNEYT13-Mar-07 5:34 
AnswerRe: How can I detect which button is clicked on the form? Pin
kubben13-Mar-07 5:34
kubben13-Mar-07 5:34 
AnswerRe: How can I detect which button is clicked on the form? Pin
testy_proconsul13-Mar-07 7:48
testy_proconsul13-Mar-07 7:48 
Questiontowers of hanoi Pin
nyakallo13-Mar-07 4:58
nyakallo13-Mar-07 4:58 
AnswerRe: towers of hanoi Pin
Marcus J. Smith13-Mar-07 6:01
professionalMarcus J. Smith13-Mar-07 6:01 
AnswerDO YOUR OWN HOMEWORK Pin
leckey14-Mar-07 9:04
leckey14-Mar-07 9:04 

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.