Link to home
Start Free TrialLog in
Avatar of r1gga
r1gga

asked on

Simple AODC Data Question

Hi
I wish to edit an item of data from a recordset using code, so far I have the following

               dbOrders.Recordset.Fields("Prepared").Value = Username.Text
               dbOrders.Recordset.Update

I get the error "Operation must use an updateable query", even though dbOrders.EditMode is set to "write".
Please Help
Thankyou r1gga
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bistrica
bistrica

Your query is not updatable, probably becouse of some JOIN in it. Post quesry here, or rethink why recordset can not be updated. Maybe records are not uniquely identified...
Avatar of r1gga

ASKER

ok thanks angell, u prompted me in the right direction, the problem was the editmode settings for the adodc have no bearing on the recordset as it is defined by an SQL query so i defined write access in the SQL and it works thanks!