G
Guest
I'm so frutstrated. I've tried every possible way to write this delete
records code and I always get an error, either wrong syntax or data type
mismatch. Can anyone please help? Thanks much.
Dim Model As String
Model = [Forms]![Export_Ref_Parts]![ModelToImport]
ExcelARefParts = "ExcelARefParts"
DoCmd.SetWarnings False
DoCmd.RunSQL "DELETE * From ExcelARefParts WHERE [Model#] = & Model & ;"
records code and I always get an error, either wrong syntax or data type
mismatch. Can anyone please help? Thanks much.
Dim Model As String
Model = [Forms]![Export_Ref_Parts]![ModelToImport]
ExcelARefParts = "ExcelARefParts"
DoCmd.SetWarnings False
DoCmd.RunSQL "DELETE * From ExcelARefParts WHERE [Model#] = & Model & ;"