So far, I have been able to get two buttons to run the specified query and load the specified table. this is what I have written so far.
__________to open table
On Error GoTo Err_btnLoad_Click
Dim stDocName As String
stDocName = "Load_New_Data"
DoCmd.OpenTable "Name of My Table", acViewNormal
Exit_btnLoad_Click:
Exit Sub
Err_btnLoad_Click:
MsgBox Err.Description
Resume Exit_btnLoad_Click
_______To run the Query
On Error GoTo Err_btnRun_Query_Click
Dim stDocName As String
stDocName = "Name of Query"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Exit_btnRun_Query_Click:
Exit Sub
Err_btnRun_Query_Click:
MsgBox Err.Description
Resume Exit_btnRun_Query_Click
____to delete all records (not performing the right operation
On Error GoTo Err_btnClear_Click
DoCmd.DeleteObject acTable, "Name of Table"
Exit_btnClear_Click:
Exit Sub
Err_btnClear_Click:
MsgBox Err.Description
Resume Exit_btnClear_Click