I have been working on an inventory system using MS Access, everything is going well. I just want to ask if there is a way to execute DoCmd.RunSQL without these prompts/dialog boxes?

I have been working on an inventory system using MS Access, everything is going well. I just want to ask if there is a way to execute DoCmd.RunSQL without these prompts/dialog boxes?

Yes, you can use Replace, after having set YourParameterValue to a value that makes sense:
DoCmd.RunSQL Replace(YourSqlString, "Purchased_4/1/2019", YourParameterValue)
or, if the value is a string:
DoCmd.RunSQL Replace(YourSqlString, "Purchased_4/1/2019", "'" & YourParameterValue & "'")
Though that parameter name seems a bit weird ...