Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Adding 2 Scripts together!

Discussion in 'Information Technology' started by Bob, Jul 28, 2006.

  1. Bob

    Bob
    Expand Collapse
    Guest

    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
     
  2. Loading...

    Similar Threads Forum Date
    Where are the 1984 manuscripts? Hard Talk Jun 6, 2015
    Heritage Rare Guru Granth Sahib Manuscripts need Preservation, says Dr. Mohinder Singh History of Sikhism Sep 10, 2013
    Events Manuscripts on display at National Museum of Pakistan. History of Sikhism Mar 3, 2013
    Nature Elephant in Orang National Park Scripts History Breaking News Dec 17, 2010
    Literature Rare collection of hand written manuscripts in Punjab village getting ruined Punjab, Punjabi, Punjabiyat Jun 2, 2010

Share This Page