Error Loading Form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manoj9849967222
    New Member
    • Jul 2007
    • 48

    Error Loading Form

    Hi All

    I have a form with some textboxes.Now i want that when ever i double click one of the Textbox it should load another form.

    I have witten some codes but its not working.

    Please help.
  • ADezii
    Recognized Expert Expert
    • Apr 2006
    • 8834

    #2
    Originally posted by manoj9849967222
    Hi All

    I have a form with some textboxes.Now i want that when ever i double click one of the Textbox it should load another form.

    I have witten some codes but its not working.

    Please help.
    To Open Form1 in Edit Mode, when you Double Click in a Text Box named txtDoubleClick, place the following code in the DblClick() Event of txtDoubleClick as illustrated below:
    [CODE=vb]Private Sub txtDoubleClick_ DblClick(Cancel As Integer)
    DoCmd.OpenForm "Form1", acNormal, , , acFormEdit, acWindowNormal
    End Sub[/CODE]

    Comment

    • manoj9849967222
      New Member
      • Jul 2007
      • 48

      #3
      Originally posted by ADezii
      To Open Form1 in Edit Mode, when you Double Click in a Text Box named txtDoubleClick, place the following code in the DblClick() Event of txtDoubleClick as illustrated below:
      [CODE=vb]Private Sub txtDoubleClick_ DblClick(Cancel As Integer)
      DoCmd.OpenForm "Form1", acNormal, , , acFormEdit, acWindowNormal
      End Sub[/CODE]

      Thanks you very much ADezii.

      I would to Thank the whole team. Its really a very good Website.

      Comment

      • ADezii
        Recognized Expert Expert
        • Apr 2006
        • 8834

        #4
        Originally posted by manoj9849967222
        Thanks you very much ADezii.

        I would to Thank the whole team. Its really a very good Website.
        You are quite welcome, and we are very proud of TheScripts and its Team Members!

        Comment

        Working...