W
WANNABE
Hi. I am trying to use a calendar to set the date on a subform, but the
best place to pu t the calendar object is of course on the main form. This
is what I have been working with>>
Private Sub EndDate_click()
Set actvdatefld = [EndDate]
Forms.Parent.Calendar.Visible = True
Forms.Parent.Calendar.SetFocus
Forms.Parent.Calendar.Value = IIf(IsNull(actvdatefld), Date,
actvdatefld.Value)
End Sub
Private Sub Calendar_Click()
actvdatefld.Value = Forms.Parent.Calendar.Value
cbo_Vendor.SetFocus
Forms.Parent.Calendar.Visible = False
End Sub
AND THIS IS ALL I HAVE IN THE DECLARATIONS
Option Compare Database
I just occured to me that maybe I need something more there, but Again I
feel clue less?
Thanks for any help!!
best place to pu t the calendar object is of course on the main form. This
is what I have been working with>>
Private Sub EndDate_click()
Set actvdatefld = [EndDate]
Forms.Parent.Calendar.Visible = True
Forms.Parent.Calendar.SetFocus
Forms.Parent.Calendar.Value = IIf(IsNull(actvdatefld), Date,
actvdatefld.Value)
End Sub
Private Sub Calendar_Click()
actvdatefld.Value = Forms.Parent.Calendar.Value
cbo_Vendor.SetFocus
Forms.Parent.Calendar.Visible = False
End Sub
AND THIS IS ALL I HAVE IN THE DECLARATIONS
Option Compare Database
I just occured to me that maybe I need something more there, but Again I
feel clue less?
Thanks for any help!!