You could use ADO:
Sub ExecuteAccessActionQuery()
' Sample demonstrating how to execute an action query in an Access db
Dim strQuery As String
Dim strPathToDB As String
Dim lngNumRecs As Long
Const adCmdStoredProc As Long = 4
' Change path as necessary
strPathToDB = "P:\KoncernOkonomi\indkobsafdelingen\ANALYSEAFDELINGEN\ACCESS\MDM Dublet tjek\test_MDM_data_c.accdb"
' change query name
strQuery = "q_tblUdtræk2"
With CreateObject("ADODB.Connection")
.Provider = "Microsoft.ACE.OLEDB.12.0"
.ConnectionString = "Data Source=" & strPathToDB & ";"
.Open
.Execute strQuery, lngNumRecs, adCmdStoredProc
.Close
End With
MsgBox lngNumRecs & " records added"
End Sub
for example.