Forum Moderators: open
System.InvalidOperationException ---> System.Data.OleDb.OleDbException: Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
--- End of inner exception stack trace ---
at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(Int32 hr)
at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteNonQuery()
at DreamweaverCtrls.DataSet.OnDataGridUpdate(Object Src, DataGridCommandEventArgs E)
I'm using the following query to display info from three tables:
SELECT Customers.UserName, tblVotes.Rating, tblVotes.Comments, tblImages.ImageURL, tblVotes.VoteID, Customers.CustomerID
FROM Customers INNER JOIN (tblImages INNER JOIN tblVotes ON tblImages.ImageID = tblVotes.ImageID) ON Customers.CustomerID = tblVotes.CustomerID
WHERE (((tblImages.ImageType)="Logo"));
In Access I can Update the Rating and Comment fields.
On the webpage I use a datagrid with an Edit column.
Here is the command part of it:
CommandText='<%# "SELECT * FROM qryVotes WHERE UserName =?" %>'
Debug="true">
<Parameters>
<Parameter Name="@UserName" Value='<%# User.Identity.Name %>' Type="WChar" />
</Parameters>
<EditOps><EditOpsTable Name="qryVotes" />
<Parameter Name="Rating" Type="UnsignedTinyInt" />
<Parameter Name="Comments" Type="LongVarWChar" />
<Parameter Name="VoteID" Type="Integer" IsPrimary="true" />
</EditOps>
What drives me crazy is that the error message on the top doesn't always come up!
Please help!