Don't understand programming..............
I have a Form (called Contacts) and in that form are two labels "First Call Date" and "Next Call Date". There is also a Subform (called Call Listing Subform) with 3 columns "Call Date", "Call Time' and "Subject". The problem is that the "Call Date" in the Subform is currently giving me whatever today's date is and I don't know how to change it to reflect the "First Call Date" and/or the "Next Call Date". This is the code that is in the Calls form (which is in the Contacts form):
Option Compare Database
Private Sub Form_Open(Cancel As Integer)
If Not IsLoaded("Contacts") Then
MsgBox "Open the Calls form using the Calls button on the Contacts form."
Cancel = True
End If
End Sub
Private Sub Form_Activate()
On Error GoTo Err_Form_Activate
Me.Requery
Exit_Form_Activate:
Exit Sub
Err_Form_Activate:
MsgBox Err.Description
Resume Exit_Form_Activate
End Sub
Private Sub Call_Details_Subform_Enter()
If IsNull(Me![CallID]) Then
Me![Call Listing Subform].Form![CallDate] = Date
DoCmd.GoToControl "Call Listing Subform"
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.GoToControl "Call Details Subform"
End If
End Sub
Thanks for any and all help.
I have a Form (called Contacts) and in that form are two labels "First Call Date" and "Next Call Date". There is also a Subform (called Call Listing Subform) with 3 columns "Call Date", "Call Time' and "Subject". The problem is that the "Call Date" in the Subform is currently giving me whatever today's date is and I don't know how to change it to reflect the "First Call Date" and/or the "Next Call Date". This is the code that is in the Calls form (which is in the Contacts form):
Option Compare Database
Private Sub Form_Open(Cancel As Integer)
If Not IsLoaded("Contacts") Then
MsgBox "Open the Calls form using the Calls button on the Contacts form."
Cancel = True
End If
End Sub
Private Sub Form_Activate()
On Error GoTo Err_Form_Activate
Me.Requery
Exit_Form_Activate:
Exit Sub
Err_Form_Activate:
MsgBox Err.Description
Resume Exit_Form_Activate
End Sub
Private Sub Call_Details_Subform_Enter()
If IsNull(Me![CallID]) Then
Me![Call Listing Subform].Form![CallDate] = Date
DoCmd.GoToControl "Call Listing Subform"
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.GoToControl "Call Details Subform"
End If
End Sub
Thanks for any and all help.