I had an earlier posting and kind of added close form to the other posting but am making it its own post now.
I have a Calendar Control on a form DateFrm see code below: I cannot close the DateFrm
from the CalEnd_Exit. Any advice on how to accomplish this? After the code from the Calendar Function
is triggered I want the Form DateFrm that the Calendar Control is on to close.
I have a Calendar Control on a form DateFrm see code below: I cannot close the DateFrm
from the CalEnd_Exit. Any advice on how to accomplish this? After the code from the Calendar Function
is triggered I want the Form DateFrm that the Calendar Control is on to close.
Code:
Private Sub CalEnd_Exit(Cancel As Integer)
Dim stDocName As String
stDocName = "BucketTblReqdPartsQty"
DoCmd.OpenQuery stDocName, acNormal, acEdit
DoCmd.Close acForm, "DateFrm"
End Sub