C
ChuckW
hi,
I don't know vba code well. I am trying to recreate a subform from another
application and place it in a new form. It is a call log with several text
boxes. Most are blank and need to be filled in by the users except the first
field called BusinessDate which has all weekdays in 2008 and 2009.. The data
gets imputted into a form which is based on a query. I had the old form,
which works successfully, open to today's date (in the BusinessDate).
I copied my vba code over to the new form but when I try to open it, it
comes up with a message "Run-time error 438 - Object doesn't support this
property or method". When I click debug, here is the code. The line "
Me!BusinessDate.SetFocus" is highlighted. I can't filed command 24 in the
old database. Can someone help?
Chuck
---------------------------------------------------------------------
Option Compare Database
Private Sub BusinessDate_Click()
End Sub
Private Sub Command24_Click()
On Error GoTo Err_Command24_Click
DoCmd.Close
Exit_Command24_Click:
Exit Sub
Err_Command24_Click:
MsgBox Err.Description
Resume Exit_Command24_Click
End Sub
Private Sub Form_Open(Cancel As Integer)
Me!BusinessDate.SetFocus
DoCmd.FindRecord Date
Me!PhoneDials.SetFocus
End Sub
I don't know vba code well. I am trying to recreate a subform from another
application and place it in a new form. It is a call log with several text
boxes. Most are blank and need to be filled in by the users except the first
field called BusinessDate which has all weekdays in 2008 and 2009.. The data
gets imputted into a form which is based on a query. I had the old form,
which works successfully, open to today's date (in the BusinessDate).
I copied my vba code over to the new form but when I try to open it, it
comes up with a message "Run-time error 438 - Object doesn't support this
property or method". When I click debug, here is the code. The line "
Me!BusinessDate.SetFocus" is highlighted. I can't filed command 24 in the
old database. Can someone help?
Chuck
---------------------------------------------------------------------
Option Compare Database
Private Sub BusinessDate_Click()
End Sub
Private Sub Command24_Click()
On Error GoTo Err_Command24_Click
DoCmd.Close
Exit_Command24_Click:
Exit Sub
Err_Command24_Click:
MsgBox Err.Description
Resume Exit_Command24_Click
End Sub
Private Sub Form_Open(Cancel As Integer)
Me!BusinessDate.SetFocus
DoCmd.FindRecord Date
Me!PhoneDials.SetFocus
End Sub