Results 1 to 2 of 2

Thread: Combo

  1. #1
    Join Date
    Mar 2004

    Unanswered: Combo

    I have this code:

    Private Sub Combo36_Change()
    Dim idd As Integer
    idd = Combo36.Value

    vrniPodatke (idd) 'private sub

    izbor 'private sub

    End Sub

    and i will have lots of the same code but diffrent comboboxes...IS it possible that I get some kind of "me.value" for the combo in order to write a private sub
    Back to the basics...

  2. #2
    Join Date
    Mar 2003
    The Bottom of The Barrel
    Provided Answers: 1
    No, not really. The way you have it is about as clean as you can get. You could go one step simpler and do: vmiPodatke(Combo36.Value). That's really not that much of a difference. You either have to pass the value, or you have to pass a reference to the individual combo box, using something like forms!yourForm.controls(cbonameasstring).value inside the private function.

    Assuming you only need to work with the Value property of the cbo, it's much simpler to keep it the way you have it now.
    Last edited by Teddy; 06-22-04 at 10:25.
    oh yeah... documentation... I have heard of that.

    *** What Do You Want In The MS Access Forum? ***

Posting Permissions

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