Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2003
    Location
    Canada
    Posts
    88

    Unanswered: vb equivalent -- command button false

    I'm looking at the following vba code:

    cmdAll = True ' where cmdAll is a Command Button

    In Access 2000, this line would show the Button to be in a 'Sunken' state so as to appear to be selected. The On Click event is not executed.
    What is the VB 6 equivalent?
    Last edited by ingineu; 02-02-04 at 23:14.

  2. #2
    Join Date
    Jun 2003
    Location
    Canada
    Posts
    88
    I'm going to use cmdAll.Focus

  3. #3
    Join Date
    Feb 2002
    Posts
    13
    cmdAll.default=true ( in VB5)
    probably the same in VB6

  4. #4
    Join Date
    Sep 2003
    Location
    Cincinnati, Oh USA
    Posts
    203
    The VB command button runs inside the standard function of:

    Private Sub cmdRun_Click()
    msgbox("Hello")
    End Sub

    It is this function that initiates the start of the code directions contained within sub when the button is clicked.

    Originally posted by li810
    cmdAll.default=true ( in VB5)
    probably the same in VB6
    Rick Knight
    KnightShift Office Solutions and Horse Breaking
    VB, VBA, FileMaker, Access Solutions, Web Solutions

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •