Consulting

Results 1 to 2 of 2

Thread: Solved: Changing Rowsource After update on another field

  1. #1
    VBAX Regular
    Joined
    Nov 2012
    Posts
    16
    Location

    Question Solved: Changing Rowsource After update on another field

    Hi guys, I would appreciate any assistance to my problems with VBA programming.

    First of all, I have a combo box (cmb_Fac_Curr) which shows three types of currencies which are "GBP", "SGD" and "JPY".

    I want the row source of cmb_Fac_Curr to change to only "GBP" and "SGD" available if the user chooses the product type "UL" from the combo box cmb_Product_Type.

    Currently I've written it like this:

    Private Sub cmb_Product_Type_AfterUpdate()

    If cmb_Product_Type = "UL" Then
    Me!cmb_Fac_Curr.RowSource = "GBP"
    End If
    How do I make it show "SGD" too?

  2. #2
    VBAX Regular
    Joined
    Nov 2012
    Posts
    16
    Location
    Solved:

    Me!cmb_Fac_Curr.RowSourceType = "Value List"
    Me!cmb_Fac_Curr.RowSource = "GBP;SGD"

Posting Permissions

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