First post on the forum...I've been continually getting a select statement error despite the code posted below doing what I intended for it to do. Given my rudimentary knowledge of SQL this is one is over my head. Also, if this is not the correct code (hopefully posted below) where can I find the source. Please forgive my lack of knowledge.
Code:
Private Sub SiteDone_Click()
Dim rstActiv As Recordset
Dim strsql As String
Dim varA As Variant
' first delete existing Site Characteristics
strsql = "Delete * from tblSite"
CurrentDb.Execute strsql
Set rstActiv = CurrentDb.OpenRecordset("tblSite")
'Add the selected Activities
rstActiv.AddNew
rstActiv!RecPCt = SiteRecPCt
rstActiv!ProjDollars = SiteInvest
rstActiv!ProjAcq = ProjectType
rstActiv.Update
rstActiv.Close
Set rstActiv = Nothing
DoCmd.RunMacro "macReports"
End Sub