HELLO:
I need help with the Append Query in the Following Code:
Public Sub CreateForm()
Dim DateInv As String
Dim strQryDelete As String
Dim strQryAppend As String
DateInv = fnGetDate ' fnGetDate is a function that gets the date from an
input box (mmddaaaa)'
strQryDelete = "DELETE * FROM tblCourseReport"
strQryAppend = "INSERT INTO CursoInforme SELECT * FROM [" & DateInv & "]"
DoCmd.RunSQL strQryDate
DoCmd.RunSQL strQryAppend
End Sub
Note:
***DateInv is the variable that changes everyday. The table is name after the
variable for example: 04032009.
All the field values in DateInv is added to another table in the Current
Database which is tblCourseReport but I just don't know how to do this. Having problem with the syntax of the append query. The error says that there is a Syntax error in the From Clause.
Please help me to make this WORK.!!!!!!!!
Thanks
I need help with the Append Query in the Following Code:
Public Sub CreateForm()
Dim DateInv As String
Dim strQryDelete As String
Dim strQryAppend As String
DateInv = fnGetDate ' fnGetDate is a function that gets the date from an
input box (mmddaaaa)'
strQryDelete = "DELETE * FROM tblCourseReport"
strQryAppend = "INSERT INTO CursoInforme SELECT * FROM [" & DateInv & "]"
DoCmd.RunSQL strQryDate
DoCmd.RunSQL strQryAppend
End Sub
Note:
***DateInv is the variable that changes everyday. The table is name after the
variable for example: 04032009.
All the field values in DateInv is added to another table in the Current
Database which is tblCourseReport but I just don't know how to do this. Having problem with the syntax of the append query. The error says that there is a Syntax error in the From Clause.
Please help me to make this WORK.!!!!!!!!
Thanks