N
Niniel
Hello,
What does this error message mean, and what do I have to do to get rid of it:
"Object doesn't support this property or method".
What I am trying to do is put a button onto a subform that allows the user
to put in the time by clicking number keys with the mouse rather than typing
it. The button launches a little time-picking form I found elsewhere, but
when I try to save the time to my form, I get that message.
Here's the code that I adapted from the sample db:
Private Sub cmdOk_Click()
On Error GoTo Err_CmdOK_Click
Forms!frmBrowseApplications!sfrmOptions.Forms!Start_Time.Value =
Me.txtTime.Value
DoCmd.Close acForm, "frmTime"
Exit_CmdOK_Click:
Exit Sub
Err_CmdOK_Click:
MsgBox Err.Description
Resume Exit_CmdOK_Click
End Sub
frmBrowseApplications is my main form, on which resides the subform
sfrmOptions, which hosts the button that calls the time form. On the time
form is an "OK" button, and the code is attached to it.
What am I doing wrong here?
Thank you.
What does this error message mean, and what do I have to do to get rid of it:
"Object doesn't support this property or method".
What I am trying to do is put a button onto a subform that allows the user
to put in the time by clicking number keys with the mouse rather than typing
it. The button launches a little time-picking form I found elsewhere, but
when I try to save the time to my form, I get that message.
Here's the code that I adapted from the sample db:
Private Sub cmdOk_Click()
On Error GoTo Err_CmdOK_Click
Forms!frmBrowseApplications!sfrmOptions.Forms!Start_Time.Value =
Me.txtTime.Value
DoCmd.Close acForm, "frmTime"
Exit_CmdOK_Click:
Exit Sub
Err_CmdOK_Click:
MsgBox Err.Description
Resume Exit_CmdOK_Click
End Sub
frmBrowseApplications is my main form, on which resides the subform
sfrmOptions, which hosts the button that calls the time form. On the time
form is an "OK" button, and the code is attached to it.
What am I doing wrong here?
Thank you.