G
Guest
Could you please tell me where I am going wrong in this basic sample code. I
am not sure how to add/append new data into a table
Dim rstRaceHeader As DAO.Recordset
Set rstRaceHeader = dbs.OpenRecordset("tblRaceHeader", dbOpenDynaset)
With rstRaceHeader
Race_Date = RaceDate
Total_Races = TotalRaces
End With
Race_Date and Total_Races are fields in tblRaceHeader. RaceDate and
TotalRaces are input fields and program checks correctly via MsgBox checks
throughout program. These are the variables which I want to append to the
table.
Thanks for taking the time to examine this simple problem but your input
will aid an old programmer
am not sure how to add/append new data into a table
Dim rstRaceHeader As DAO.Recordset
Set rstRaceHeader = dbs.OpenRecordset("tblRaceHeader", dbOpenDynaset)
With rstRaceHeader
Race_Date = RaceDate
Total_Races = TotalRaces
End With
Race_Date and Total_Races are fields in tblRaceHeader. RaceDate and
TotalRaces are input fields and program checks correctly via MsgBox checks
throughout program. These are the variables which I want to append to the
table.
Thanks for taking the time to examine this simple problem but your input
will aid an old programmer