N
Newbie
Hi,
I have a SQL 2000 database that I am populating from a form in Access XP
I am using an ADO command to insert a record into the table.
The table is being populated except for two fields - what am I doing wrong.
the two fields that are not being updated are
Table def:
Passed = bit
OpSeq = smallint
Form
OpSeq =textbox - I have tried as both number and with no formatting
chkpassed = checkbox to return True/False
here is a snippet of the code
cmdFirstOff.Parameters.Append cmdFirstOff.CreateParameter("@OpSeq",
adVarChar, adParamInput, me.OpNo)
cmdFirstOff.Parameters.Append
cmdFirstOff.CreateParameter("@Comments", adVarChar, adParamInput, 300,
Me.txtComments)
cmdFirstOff.Parameters.Append cmdFirstOff.CreateParameter("@PartNo",
adChar, adParamInput, 30, Me.PartNo)
cmdFirstOff.Parameters.Append
cmdFirstOff.CreateParameter("@Customer", adChar, adParamInput, 8,
Me.CustomerID)
cmdFirstOff.Parameters.Append cmdFirstOff.CreateParameter("@Passed",
adVariant, adParamInput, me.chkpassed)
I have tried @OpSeq as a adInteger and I have tried chkpassed as an
adBoolean but nothing seems to work
Any ideas where I am going wrong?
Thanks
I have a SQL 2000 database that I am populating from a form in Access XP
I am using an ADO command to insert a record into the table.
The table is being populated except for two fields - what am I doing wrong.
the two fields that are not being updated are
Table def:
Passed = bit
OpSeq = smallint
Form
OpSeq =textbox - I have tried as both number and with no formatting
chkpassed = checkbox to return True/False
here is a snippet of the code
cmdFirstOff.Parameters.Append cmdFirstOff.CreateParameter("@OpSeq",
adVarChar, adParamInput, me.OpNo)
cmdFirstOff.Parameters.Append
cmdFirstOff.CreateParameter("@Comments", adVarChar, adParamInput, 300,
Me.txtComments)
cmdFirstOff.Parameters.Append cmdFirstOff.CreateParameter("@PartNo",
adChar, adParamInput, 30, Me.PartNo)
cmdFirstOff.Parameters.Append
cmdFirstOff.CreateParameter("@Customer", adChar, adParamInput, 8,
Me.CustomerID)
cmdFirstOff.Parameters.Append cmdFirstOff.CreateParameter("@Passed",
adVariant, adParamInput, me.chkpassed)
I have tried @OpSeq as a adInteger and I have tried chkpassed as an
adBoolean but nothing seems to work
Any ideas where I am going wrong?
Thanks