Click here to Skip to main content
16,010,650 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Reading email address from outlook into vb.net Pin
Dave Kreskowiak3-Jul-07 5:07
mveDave Kreskowiak3-Jul-07 5:07 
GeneralRe: Reading email address from outlook into vb.net Pin
Arunacss3-Jul-07 18:57
Arunacss3-Jul-07 18:57 
GeneralRe: Reading email address from outlook into vb.net Pin
Dave Kreskowiak5-Jul-07 4:28
mveDave Kreskowiak5-Jul-07 4:28 
QuestionSystem information Pin
rajmohan19763-Jul-07 0:20
rajmohan19763-Jul-07 0:20 
AnswerRe: System information Pin
originSH3-Jul-07 1:23
originSH3-Jul-07 1:23 
AnswerRe: System information Pin
Luc Pattyn3-Jul-07 4:12
sitebuilderLuc Pattyn3-Jul-07 4:12 
AnswerRe: System information Pin
koolprasad20033-Jul-07 23:09
professionalkoolprasad20033-Jul-07 23:09 
Questionerror in this code Pin
magedhv2-Jul-07 22:32
magedhv2-Jul-07 22:32 
he tell me there is an error on the insert statement
and iam sure from the names of the feilds coz i copy it from database
so what's wrong???

i don't know where is the error plz anyone answer me
thanks







cmd.Connection.Close()
If cn.State = ConnectionState.Closed Then
If cn.State = ConnectionState.Closed Then
cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=ehab.mdb"
cn.Open()

End If
cmd.Connection = cn
cmd.CommandType = CommandType.Text
End If
Dim s As String
Dim h As Integer
s = 0

h = 0

Dim f1, f2, f3, f4, f5, f6, f7, f8 As String

f1 = "'" & DateTimePicker1.Value & "',"

f2 = "'" & ComboBox1.Text & "',"

f3 = "'" & ComboBox2.Text & "',"

f4 = "'" & TextBox1.Text & "',"

f5 = "'" & TextBox2.Text & "',"

f6 = "'" & TextBox3.Text & "',"

f7 = "'" & TextBox4.Text & "',"

f8 = "'" & Label10.Text & "'"


s = "insert into sale "
s = s & " (dte,op,value,nos,cost,coms,nii,npp )values "

s = s & "(" & f1 & f2 & f3 & f4 & f5 & f6 & f7 & f8 & ")"
cmd.CommandText = s
h = cmd.ExecuteNonQuery()
MsgBox("Saved succssefuly")
AnswerRe: error in this code Pin
SHatchard2-Jul-07 23:06
SHatchard2-Jul-07 23:06 
GeneralRe: error in this code Pin
Dileep_Vickey2-Jul-07 23:21
Dileep_Vickey2-Jul-07 23:21 
GeneralRe: error in this code Pin
magedhv2-Jul-07 23:28
magedhv2-Jul-07 23:28 
GeneralRe: error in this code Pin
SHatchard3-Jul-07 0:38
SHatchard3-Jul-07 0:38 
GeneralRe: error in this code Pin
ChandraRam3-Jul-07 1:26
ChandraRam3-Jul-07 1:26 
GeneralRe: error in this code Pin
magedhv3-Jul-07 2:11
magedhv3-Jul-07 2:11 
GeneralRe: error in this code Pin
ChandraRam3-Jul-07 2:17
ChandraRam3-Jul-07 2:17 
AnswerRe: error in this code Pin
ShuklaGirish2-Jul-07 23:10
ShuklaGirish2-Jul-07 23:10 
GeneralRe: error in this code Pin
magedhv3-Jul-07 0:01
magedhv3-Jul-07 0:01 
GeneralRe: error in this code Pin
magedhv3-Jul-07 1:28
magedhv3-Jul-07 1:28 
GeneralRe: error in this code Pin
ChandraRam3-Jul-07 2:18
ChandraRam3-Jul-07 2:18 
GeneralRe: error in this code Pin
magedhv3-Jul-07 2:25
magedhv3-Jul-07 2:25 
GeneralRe: error in this code Pin
ChandraRam3-Jul-07 2:44
ChandraRam3-Jul-07 2:44 
GeneralRe: error in this code Pin
magedhv3-Jul-07 3:04
magedhv3-Jul-07 3:04 
GeneralRe: error in this code Pin
ChandraRam3-Jul-07 3:09
ChandraRam3-Jul-07 3:09 
AnswerRe: error in this code Pin
Dave Kreskowiak3-Jul-07 5:04
mveDave Kreskowiak3-Jul-07 5:04 
AnswerRe: error in this code Pin
magedhv4-Jul-07 0:34
magedhv4-Jul-07 0:34 

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.