Good evening everyone, I’m starting to use Xojo again after many months of downtime. I have a problem with the syntax… I pass two string values: DataDaEliminareDallatabella which tells me the year of the records that I should delete from the table, and TavoloDaCuiEliminareRecords which tells me the name of the table, but something is wrong.
The table field Data_Spedizione is of the type dd/mm/YYYY
Var deleteSQL As String
deleteSQL = "DELETE FROM " + TabellaDaCuiEliminareRecords + " WHERE Year(Data_Spedizione)=#"+ DataDaEliminareDallatabella +"#"
Try
db.ExecuteSQL(deleteSQL)
Catch error As DatabaseException
MessageBox(db.ErrorMessage)
End Try
4 posts - 4 participants