B
Bob
Normally I click "ModifyHoldingInvoice" Double click the horse and up comes
the Invoice to use, But Now I have a horse list on my "Main" is it possible
to double click the horse from here, below is the 2 scripts I usally use to
get Invoice up!
So now I would like to double click the horse selected from Main
Private Sub cmdModifyIntermediateInvoice_Click()
DoCmd.Close acForm, "frmModify"
DoCmd.OpenForm "frmModify", , , , , , "ModifyHoldingInvoice"
End Sub
---------------------------------------------------------------------------------
Private Sub lstModify_DblClick(Cancel As Integer)
Select Case Me.OpenArgs
Case "ModifyOldInvoice"
If lstModify.value = "" Or IsNull(lstModify.value) Then
MsgBox "Please Select Owner.", vbApplicationModal + vbOKOnly
+ vbInformation
Else
DoCmd.OpenForm "frmInvoice", , , , , , "ModifyOldInvoice"
End If
Case "ModifyHoldingInvoice"
If lstModify.value = "" Or IsNull(lstModify.value) Then
MsgBox "Please Select Horse.", vbApplicationModal + vbOKOnly
+ vbInformation
Else
DoCmd.OpenForm "frmInvoice", , , , , ,
"ModifyHoldingInvoice"
End If
Case Else
If lstModify.value = "" Or IsNull(lstModify.value) Then
MsgBox "Please Select OwnerName.", vbApplicationModal +
vbOKOnly + vbInformation
Else
DoCmd.OpenForm "frmInvoice", , , , , , "ModifyOldInvoice"
End If
End Select
End Sub
the Invoice to use, But Now I have a horse list on my "Main" is it possible
to double click the horse from here, below is the 2 scripts I usally use to
get Invoice up!
So now I would like to double click the horse selected from Main
Private Sub cmdModifyIntermediateInvoice_Click()
DoCmd.Close acForm, "frmModify"
DoCmd.OpenForm "frmModify", , , , , , "ModifyHoldingInvoice"
End Sub
---------------------------------------------------------------------------------
Private Sub lstModify_DblClick(Cancel As Integer)
Select Case Me.OpenArgs
Case "ModifyOldInvoice"
If lstModify.value = "" Or IsNull(lstModify.value) Then
MsgBox "Please Select Owner.", vbApplicationModal + vbOKOnly
+ vbInformation
Else
DoCmd.OpenForm "frmInvoice", , , , , , "ModifyOldInvoice"
End If
Case "ModifyHoldingInvoice"
If lstModify.value = "" Or IsNull(lstModify.value) Then
MsgBox "Please Select Horse.", vbApplicationModal + vbOKOnly
+ vbInformation
Else
DoCmd.OpenForm "frmInvoice", , , , , ,
"ModifyHoldingInvoice"
End If
Case Else
If lstModify.value = "" Or IsNull(lstModify.value) Then
MsgBox "Please Select OwnerName.", vbApplicationModal +
vbOKOnly + vbInformation
Else
DoCmd.OpenForm "frmInvoice", , , , , , "ModifyOldInvoice"
End If
End Select
End Sub