I tried to use that, but it doesn't seem to work... It doesn't seem to fire
properly... I also can't find a complete example of it, the examples in the
help don't seem to work for me. Have you ever gotten it to work and if so
how?
Here is the code I used, it didn't do anything...
cmdAddSaveCustData.CommandText = "INSERT INTO CustPurch (MName, MDate,
MPurchased, MPrice, MLength, MMedia, MType, MRating, MDesc, MPerRating)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"
'Set Command Parameters
cmdAddSaveCustData.Parameters.Add("MName", SqlDbType.NVarChar
cmdAddSaveCustData.Parameters.Add("MDate", SqlDbType.DateTime)
cmdAddSaveCustData.Parameters.Add("MPurchased", SqlDbType.Int)
cmdAddSaveCustData.Parameters.Add("MPrice", SqlDbType.Float)
cmdAddSaveCustData.Parameters.Add("MLength", SqlDbType.Int)
cmdAddSaveCustData.Parameters.Add("MMedia", SqlDbType.Int)
cmdAddSaveCustData.Parameters.Add("MType", SqlDbType.Int)
cmdAddSaveCustData.Parameters.Add("MRating", SqlDbType.Int)
cmdAddSaveCustData.Parameters.Add("MDesc", SqlDbType.NText)
cmdAddSaveCustData.Parameters.Add("MPerRating", SqlDbType.Int)'
cmdAddSaveCustData.Prepare()
cmdAddSaveCustData.Parameters("MName").Value = MName
cmdAddSaveCustData.Parameters("MDate").Value = MDate
cmdAddSaveCustData.Parameters("MPurchased").Value = MPurchased
cmdAddSaveCustData.Parameters("MPrice").Value = MPrice
cmdAddSaveCustData.Parameters("MLength").Value = MLength
cmdAddSaveCustData.Parameters("MMedia").Value = MMedia
cmdAddSaveCustData.Parameters("MType").Value = MType
cmdAddSaveCustData.Parameters("MRating").Value = MRating
cmdAddSaveCustData.Parameters("MDesc").Value = MDesc
cmdAddSaveCustData.Parameters("MPerRating").Value = MPerRating
' MsgBox(cmdAddSaveCustData.CommandText())
cmdAddSaveCustData.ExecuteNonQuery()
Thanks for your answer to my previous post.
Atley