Results 1 to 2 of 2
  1. #1
    cecochardt is offline Novice
    Windows Vista Access 2007
    Join Date
    May 2011
    Posts
    1

    Me! Help

    I have a standard form that uses
    Private Sub PROD_ID_AfterUpdate()
    Me!DESCRIPTION = Me!PROD_ID.Column(2)
    to fill in the description on an product and
    Me!UNIT_COST = Me!PROD_ID.Column(3)
    to fill in the Price.
    My problem is I 4 different Price Option I have tried

    If Me![Form]![Quote]![pricelist] = "GSA" Then Me!UNIT_COST = Me!PROD_ID.Column(5)
    If Me![Form]![Quote!pricelist] = "GENERAL" Then Me!UNIT_COST = Me!PROD_ID.Column(3)
    If Me![Form]![Quote!pricelist] = "OLD GSA" Then Me!UNIT_COST = Me!PROD_ID.Column(4)


    If Me![Form]![Quote!pricelist] = "INTERNATIONAL" Then Me!UNIT_COST = Me!PROD_ID.Column(6)

    But it doesn't work. I would like some advise please

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums