K
KP
I am writing a small module in A97.
the sql has select fields from table group by fields having count(*) =1
I want to loop thru all the records the above query pulls and update a field
but it is giving me error "Can't update. Database or object is read-only"
Set Temprec = mydb.OpenRecordset(sqlquery)
Temprec.Sort = "field1,field2"
Temprec.MoveFirst
Do Until Temprec.EOF
Temprec.Edit
Temprec.Fields("field3") = "O"
Temprec.Update
Loop
Any help is appreciated.
the sql has select fields from table group by fields having count(*) =1
I want to loop thru all the records the above query pulls and update a field
but it is giving me error "Can't update. Database or object is read-only"
Set Temprec = mydb.OpenRecordset(sqlquery)
Temprec.Sort = "field1,field2"
Temprec.MoveFirst
Do Until Temprec.EOF
Temprec.Edit
Temprec.Fields("field3") = "O"
Temprec.Update
Loop
Any help is appreciated.