Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2003
    Location
    New York
    Posts
    47

    Unanswered: Enable a field on a report

    I have a check box on a form that I need to disable unless certain fields are filled in. Working with just one field initially, I put in:

    Private Sub booReady_Click()
    If intService = 0 Then
    Me!booReady.Enabled False
    Else
    Me!booReady.Enabled True
    End If

    But it keeps giving me back the error 'The object doesn't support this property or method."

    I don't know how else to do it. Help?
    Terri Gavin

  2. #2
    Join Date
    Dec 2003
    Location
    New York
    Posts
    47

    Enable a field on a form

    My subject was wrong, it is on a form not a report
    Terri Gavin

  3. #3
    Join Date
    Nov 2007
    Location
    Adelaide, South Australia
    Posts
    4,049
    Maybe:

    Me!booReady.Enabled = False

    Mind you, I don't think it will be terribly effective in the on click event for the object you're trying to disable.
    Owner and Manager of
    CypherBYTE, Microsoft Access Development Specialists.
    Microsoft Access MCP.
    And all around nice guy!


    "Heck it's something understood by accountants ... so it can't be 'that' difficult..." -- Healdem
    "...teach a man to code and he'll be frustrated for life! " -- georgev

  4. #4
    Join Date
    Dec 2004
    Location
    Madison, WI
    Posts
    3,926
    Isn't it

    me.booReady.enabled = false

    ?
    Expert Database Programming
    MSAccess since 1.0, SQL Server since 6.5, Visual Basic (5.0, 6.0)

  5. #5
    Join Date
    Nov 2007
    Location
    Adelaide, South Australia
    Posts
    4,049
    Is there an echo in here? lol
    Owner and Manager of
    CypherBYTE, Microsoft Access Development Specialists.
    Microsoft Access MCP.
    And all around nice guy!


    "Heck it's something understood by accountants ... so it can't be 'that' difficult..." -- Healdem
    "...teach a man to code and he'll be frustrated for life! " -- georgev

Posting Permissions

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