I'm trying to update a field in a table with the value of a text box in a report. Here is what I have:
Private Sub Report_Close()
Dim rs As Recordset
Set rs = CurrentDb.OpenR ecordset("OHPA Summary Report Table")
rs.AddNew
rs("Begining Balance") = [Text4]
rs.Update
End Sub
When I run the code, I keep getting a type mismatch on the line where I set rs = currentdb....et c. ANY ideas??? Is there a better way to do this??
Private Sub Report_Close()
Dim rs As Recordset
Set rs = CurrentDb.OpenR ecordset("OHPA Summary Report Table")
rs.AddNew
rs("Begining Balance") = [Text4]
rs.Update
End Sub
When I run the code, I keep getting a type mismatch on the line where I set rs = currentdb....et c. ANY ideas??? Is there a better way to do this??
Comment