Run Insert SQL queries
问题 How would I run an INSERT SQL query in Microsoft Access? For Example: INSERT INTO tbl_UserPurchase (ID, Name) Values (321, Joe) 回答1: You can build your query in Access' query designer, then while still in Design View, click "Run" on the ribbon. (Look for the red explanation point.) If you want to do it from code, you can use the .Execute method of either the DAO database object or the ADO CurrentProject.Connection object. Dim strInsert As String strInsert = "INSERT INTO tbl_UserPurchase (ID,