D
deb
Access2003
I have a main form called fClosure (PK ProjectID)
There is a subform called fClosureApproval (PK ClosureApprovalID, SK
ProjectID)
On fClosureApproval, I have an option group with 2 toggle buttons. see code
below
Select Case optApproval.Value
Case 1 'Approve Closure by adding PM and date
Me.ApprovedByMgr = DLookup("[ContactPMgrID]", "[t040Project]",
"[ProjectID] =" & [Forms]![fClosure]![ProjectID])
Me.DateMgr = Now()
Case 2 'Request Clarification by displaying pop up form
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "fClosureApproveClarifyPopUp"
stLinkCriteria = "[ClosureApprovalID]=" & Me![ClosureApprovalID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Select
The toggle buttons do not work when I open the main form, fClosure, but if I
open the subform they work ok. How do I change my code to make the subform
form toggle buttons work within fClosure.
I have a main form called fClosure (PK ProjectID)
There is a subform called fClosureApproval (PK ClosureApprovalID, SK
ProjectID)
On fClosureApproval, I have an option group with 2 toggle buttons. see code
below
Select Case optApproval.Value
Case 1 'Approve Closure by adding PM and date
Me.ApprovedByMgr = DLookup("[ContactPMgrID]", "[t040Project]",
"[ProjectID] =" & [Forms]![fClosure]![ProjectID])
Me.DateMgr = Now()
Case 2 'Request Clarification by displaying pop up form
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "fClosureApproveClarifyPopUp"
stLinkCriteria = "[ClosureApprovalID]=" & Me![ClosureApprovalID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Select
The toggle buttons do not work when I open the main form, fClosure, but if I
open the subform they work ok. How do I change my code to make the subform
form toggle buttons work within fClosure.