J
Joao
I have this code:
.....
Set BD = CurrentDb
.....
Public Function funcRunSQL(strCmdSQL As String)
Set rstSQL = BD.OpenRecordset( _
strCmdSQL, dbOpenDynaset)
rstSQL.Update
rstSQL.Close
BD.Close
End function
Calling the func:
SQLString = "UPDATE Processos SET Mes = 6, Ano = 1924 WHERE NrSubs = 87564;"
funcCorrerSQL SQLString
I get an error on the rstSQL SET:
"Error : 3219 Invalid Operation"
Anyone????
I think my DB isn't lockedwriting...
.....
Set BD = CurrentDb
.....
Public Function funcRunSQL(strCmdSQL As String)
Set rstSQL = BD.OpenRecordset( _
strCmdSQL, dbOpenDynaset)
rstSQL.Update
rstSQL.Close
BD.Close
End function
Calling the func:
SQLString = "UPDATE Processos SET Mes = 6, Ano = 1924 WHERE NrSubs = 87564;"
funcCorrerSQL SQLString
I get an error on the rstSQL SET:
"Error : 3219 Invalid Operation"
Anyone????
I think my DB isn't lockedwriting...