|
-
Jan 11th, 2003, 09:17 AM
#1
Thread Starter
Member
What is the wrong in this code?
I use this code in a class to insert row in table:-
'********************
Public Sub hosptINSERT(FRM As Object, C As Object)
Set Cmd = New ADODB.Command
With Cmd
.ActiveConnection = cn
.CommandText = "prd_insert_HOSPT"
.CommandType = adCmdStoredProc
.Parameters.Append .CreateParameter("@HOSPNAME_1", adVarChar, 1, 10, C(0).Text)
.Parameters.Append .CreateParameter("@FULLNAME_2 ", adVarChar, 1, 50, C(1).Text)
.Parameters.Append .CreateParameter("@AHOSPNAME_3", adVarChar, 1, 50, C(2).Text)
End With
End Sub
'********************
WHEN I TRAY TO RUN IT ,I FACE THES MSG:-'Must specify index for object array'
never i can not say 'NO' for u until u aske me to leave u...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|