ParsX.com
پذیرش پروژه از دانشجویی ... تا سازمانی 09376225339
 
   ProfileProfile   Log in to check your private messagesLog in to check your private messages  |  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups Log inLog in   RegisterRegister 

مشكل در دستور update

 
Post new topic   Reply to topic    ParsX.com Forum Index -> ويژوال بيسيك .NET
View previous topic :: View next topic  
Author Message
hanan
مهمون يكي دو روزه


Joined: 15 Apr 2007
Posts: 14

PostPosted: Mon Aug 20, 2007 11:38 am    Post subject: مشكل در دستور update Reply with quote

سلام
من اين كد را براي دستور update مر بوط به پايگاه داده sql server در vb نوشتم ولي اين خطا را ميده
ممنون ميشم هر چه سريعنر راهنمايي كنيد
Incoorid syntax near “(“.


كد برنامه
Private Sub Command4_Click()
Dim cmd As New ADODB.Command
With cmd
.ActiveConnection = Adodc1.ConnectionString
.CommandType = adCmdText
.CommandText = " update tblstudent SET (ID_Number,name,family,age,madrak) =
( ,CStr(Val(Text1)), CStr(Text2), CStr(Text3),CStr(Text4), CStr(Text5))"
.Execute
Adodc1.Refresh
End With
End Sub
Back to top
Display posts from previous:   
Post new topic   Reply to topic    ParsX.com Forum Index -> ويژوال بيسيك .NET All times are GMT + 3.5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum