BennyLinton
Registered User.
- Local time
- Today, 05:53
- Joined
- Feb 21, 2014
- Messages
- 263
I'm getting what may be a datatype error with the following VBA on a form with 3 textboxes and a button for updating a record. In one textbox i type the ID# and in the other two corrections to a person's name:
I'm getting the error:
"Method or member not found" on the "Me.NBCCIId"
Code:
Private Sub UpdatePeople_Click()
Dim strCUser As String
strCUser = CurrentUserName
Dim con As adodb.Connection
Dim cmd As adodb.Command
Dim rs As adodb.Recordset
Set con = New adodb.Connection
Set cmd = New adodb.Command
con.ConnectionString = CONN_STRING
con.Open
cmd.ActiveConnection = con
cmd.CommandType = adCmdStoredProc
cmd.CommandText = "updatePeople"
cmd.Parameters.Append cmd.CreateParameter("@NBCCIId", adInteger, adParamInput, 40, Me.NBCCIId)
cmd.Parameters.Append cmd.CreateParameter("@firstName", adVarChar, adParamInput, 40, Me.firstName)
cmd.Parameters.Append cmd.CreateParameter("@lastName", adVarChar, adParamInput, 40, Me.lastName)
cmd.Execute
End Sub
I'm getting the error:
"Method or member not found" on the "Me.NBCCIId"
Last edited: