Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot add data to a calculated field in a disconnected recordset

Status
Not open for further replies.

alrightydooda

Programmer
Jun 27, 2003
13
IE
VB6.0
SQL Server2000

Hi,

I am trying to add data to a calculated field in a disconnected recordset and i am getting the following error:

"Multiple-step operation generated errors. Check each status value."

Here is the query for the recordset:

SELECT table1.amount_charged, table1.deductible, CAST((amount_charged - deductible) as Numeric) as balance
FROM table1
WHERE table1.code = '0001'

Here is the VB code that is giving the error (falling over on the second line):

rsTables1.addnew
rsTable1.fields("balance").value = 0

I am using MDAC2.8 and my provider is OLEDB.1

We are conerting our oracle database into SQL Server and in oracle you can add data into a caluclated field as shown above.

My question is does anybody know if this is allowed in SQL Server or am i dealing with a configuration problem, maybe I need to use a different provider?

Any help greatly appreciated!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top