+ Reply to Thread
Results 1 to 2 of 2

VBA IF Then Help

  1. #1
    Registered User
    Join Date
    01-11-2017
    Location
    NY
    MS-Off Ver
    2007
    Posts
    17

    VBA IF Then Help

    Access VBA issue

    Please help me fix this as this is wrong

    Private Sub Taxed_AfterUpdate()
    if
    Me.Taxed.Enabled = True
    Me.Tax_Amt.Value = Me.TaxSum
    else
    Me.Tax_Amt.Value = 0
    End If

    End Sub

    thank you
    Last edited by WarriorXL; 10-07-2020 at 02:47 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,532

    Re: VBA IF Then Help

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1