Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Mar 2002
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Textbox Value (Access 200 VBA)

    I have a form attached to a query. I want to change the value of a textbox on the form from 0 to 1 or 1 to 0 with the push of a button.

    Do I have to open the recordset to be able to change that value or can I do something like textbox.Value = 0

    Thanks

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Textbox Value (Access 200 VBA)

    You can do the latter. If you want to toggle the value, use this:

    Me.TextBox1 = 1 - Me.TextBox1

    This will change the value from 0 to 1, and from 1 to 0.

  3. #3
    2 Star Lounger
    Join Date
    Mar 2002
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Textbox Value (Access 200 VBA)

    Thanks

Posting Permissions

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