B
biggles
Yes I have asked this before, but I have looked and
thought about this enough that all I want is an answer and
want to move on to something else. Here is the code that
is giving me an object required error. I have the source
of all the fields in the form as calced values, I want to
send those to the table for other uses later, and done
when the user closes the form.
Private Sub Closeform_Click()
On Error GoTo Err_Closeform_Click
Dim panels As Long
Dim yards_req As Long
Set rst = tblTREAT_PRICING.OPENRECORDSET
rst!intPANELS = panels
rst!intYARDS_REQ = yards_req
rst.update
rst.close
DoCmd.close
Exit_Closeform_Click:
Exit Sub
Err_Closeform_Click:
MsgBox Err.Description
Resume Exit_Closeform_Click
End Sub
Any ideas? And what does the error mean.
thought about this enough that all I want is an answer and
want to move on to something else. Here is the code that
is giving me an object required error. I have the source
of all the fields in the form as calced values, I want to
send those to the table for other uses later, and done
when the user closes the form.
Private Sub Closeform_Click()
On Error GoTo Err_Closeform_Click
Dim panels As Long
Dim yards_req As Long
Set rst = tblTREAT_PRICING.OPENRECORDSET
rst!intPANELS = panels
rst!intYARDS_REQ = yards_req
rst.update
rst.close
DoCmd.close
Exit_Closeform_Click:
Exit Sub
Err_Closeform_Click:
MsgBox Err.Description
Resume Exit_Closeform_Click
End Sub
Any ideas? And what does the error mean.