Good afternoon
I have created a button to run specific queries I have in Access to update tables etc.... but I am having an issue it seems when I want to update a "select query"
Is there away to run the query as is without writing it in as sql as I have people on the team who understand the queries, but not when looking at it in SQL format?
I am using the following
thanks in advance
Gavin
I have created a button to run specific queries I have in Access to update tables etc.... but I am having an issue it seems when I want to update a "select query"
Is there away to run the query as is without writing it in as sql as I have people on the team who understand the queries, but not when looking at it in SQL format?
I am using the following
Code:
Dim answer As Integer
answer = MsgBox("Has the daily CSAT information been uplaoded?", vbQuestion + vbYesNo)
If answer = vbYes Then
DoCmd.SetWarnings False 'turns off warnings
DoCmd.RunSQL "Delete Table1.* From Table1;"
CurrentDb.Execute "Query 1"
CurrentDb.Execute "Query 2"
CurrentDb.Execute "Query 3"
CurrentDb.Execute "Query 4"
CurrentDb.Execute "Query 5" ' Select Query
DoCmd.SetWarnings True 'turns warning back on
Else
Exit Sub
End If
End Sub
thanks in advance
Gavin