+ Reply to Thread
Results 1 to 3 of 3

Create an additional column in query/table?

  1. #1
    shanew
    Guest

    Create an additional column in query/table?

    Hi All,

    Can i create an additional column in Access, based on certain condition such as if condition = True,

    than Total amount + 200?

    How could I write that in my VBA?

    Thanks!

  2. #2
    Webtekr
    Guest

    Re: Create an additional column in query/table?

    Hello,

    Each column in access is a field of your table. I think this is what you want to do, you have a field name Total Amount,
    you want that cost to be added 200 if the field condition=True right?

  3. #3
    Webtekr
    Guest

    Re: Create an additional column in query/table?

    Ok just do the following, if you are using your condition field as the combobox, "It means that you are picking from a list" just goto events, after update and

    put this
    If condition=True than Cost= Price + 200
    If condition=False than Cost=Price
    End if
    Me.refresh
    I think this should work.... What the concept is when the condition is true the field Total Amount will update automatically what you picked...

+ 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