
ADO AddNew command with VB 6.0 and SQL 7.0
Sorry, found the answer, the RecordSet was set to read only.
When I am trying to add a new record, then get the new SQL 7.0 generated ID field, I get the error shown below.
SQL = "Select * from contact WHERE id = 0"
DE.rsSQLContact.Open SQL, DE.SalesPro
DE.rsSQLContact.AddNew
DE.rsSQLContact.Update
DE.rsSQLContact.MoveLast
mContactId = DE.rsSQLContact!id
But I get an error:
"Run-time error 3021"
"Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record."
Any Idea's ?
--
_________________________________
God Bless
Marco Napoli
Little Helpers of Our Loving Mother
Official Web Site for Nancy Fowler (visionary) in Conyers, GA USA
http://www.ourlovingmother.org