P
Pendragon
WinXP/Access03
Main Form - frmParticipant
Subform - frmPRT_RollUp
subSubform - frmPRT_RollUpSub (this is the Name property of the form)
frmPRT_RollUp manages records for the table PRT_RollUp. Through a couple
unbound combo boxes for data selection, records are added via a command
button.
frmPRT_RollUpSub is a datasheet view of table PRT_RollUp with Filter, Edits
& Deletions set to Yes and Additions set to No to prevent users from typing
information in directly into the datasheet.
In managing the records, if a user wants to delete a record from PRT_RollUp,
the user simply double-clicks on the record in frmPRT_RollUpSub.
Couple days ago this was working fine and dandy. Today it's not and I don't
believe I changed anything which would have impacted this code to work. Now
on the double click, the record is highlighted but nothing happens.
Here is the OnDblClick code:
Dim resp As Variant
Dim ctl As Control
ctl = Forms!frmParticipant!frmPRT_RollUp.Form!cboAddRollUp
resp = MsgBox("You are about to delete this participant from the commission
roll up list." & vbCrLf & vbCrLf & _
"Do you want to continue?", vbYesNo)
If resp = vbNo Then
DoCmd.CancelEvent
DoCmd.GoToControl ctl.Name
Else
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdDeleteRecord
DoCmd.SetWarnings True
DoCmd.GoToControl ctl.Name
End If
Exit Sub
What else should I be looking at for errors? I place a breakpoint on the
MsgBox line but that's not even being initiated.
Also, after an action is taking place, I would like the focus to go to the
control on the parent form. This is not happening either - I believe my
definition of ctl after the dim statement is syntactically correct -
comments/review of that is appreciated too.
Thanks in advance for any opinions/advice.
Main Form - frmParticipant
Subform - frmPRT_RollUp
subSubform - frmPRT_RollUpSub (this is the Name property of the form)
frmPRT_RollUp manages records for the table PRT_RollUp. Through a couple
unbound combo boxes for data selection, records are added via a command
button.
frmPRT_RollUpSub is a datasheet view of table PRT_RollUp with Filter, Edits
& Deletions set to Yes and Additions set to No to prevent users from typing
information in directly into the datasheet.
In managing the records, if a user wants to delete a record from PRT_RollUp,
the user simply double-clicks on the record in frmPRT_RollUpSub.
Couple days ago this was working fine and dandy. Today it's not and I don't
believe I changed anything which would have impacted this code to work. Now
on the double click, the record is highlighted but nothing happens.
Here is the OnDblClick code:
Dim resp As Variant
Dim ctl As Control
ctl = Forms!frmParticipant!frmPRT_RollUp.Form!cboAddRollUp
resp = MsgBox("You are about to delete this participant from the commission
roll up list." & vbCrLf & vbCrLf & _
"Do you want to continue?", vbYesNo)
If resp = vbNo Then
DoCmd.CancelEvent
DoCmd.GoToControl ctl.Name
Else
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdDeleteRecord
DoCmd.SetWarnings True
DoCmd.GoToControl ctl.Name
End If
Exit Sub
What else should I be looking at for errors? I place a breakpoint on the
MsgBox line but that's not even being initiated.
Also, after an action is taking place, I would like the focus to go to the
control on the parent form. This is not happening either - I believe my
definition of ctl after the dim statement is syntactically correct -
comments/review of that is appreciated too.
Thanks in advance for any opinions/advice.