Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

Mr. Steele: Further problem about ODERBY

Discussion in 'Information Technology' started by Martin \(Martin Lee\), Jul 28, 2006.

  1. Martin \(Martin Lee\)

    Martin \(Martin Lee\)
    Expand Collapse

    First, Mr.Doug Steele, thank you very much for your amazing VBA.

    Second, I want to make your method into more generally using. The VBA you
    provide is fit for textbox, however in my FORM,I have combobox also. I want
    to make your VBA available also to FORM's combo box, how ?

    ( I have tried to change the vba "textbox" into "combobox", but can't work.)


    Martin Lee

    It sounds, then, like you want something like the following in your button's
    Click event:

    If TypeOf Screen.PreviousControl Is TextBox Then
    Me.OrderBy = Screen.PreviousControl.ControlSource
    Me.OrderByOn = True
    End If

    Doug Steele, Microsoft Access MVP
    (no e-mails, please!)

    > >> >> I have a FORM which contains a lot of textboxes (each textbox belong
    > >> >> to

    > > a
    > >> >> field).
    > >> >>
    > >> >> I want to make a button on this FORM : firstly I would place the

    > > to
    > >> >> anyone of the textbox, and then I click this button --- what I want
    > >> >> is,
    > >> > when
    > >> >> I click this button, the FORM will index by THIS textbox's field.
    > >> >>
    > >> >> How should the VBA of this BUTTTON be?
    > >> >>
    > >> >> Thank you.
    > >> >>
    > >> >>
    > >> >>
    > >> >> Martin Lee
    > >> >>
  2. Loading...

Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     

Share This Page