??? Select all button

darksniper

Registered User.
Local time
Today, 12:09
Joined
Sep 4, 2005
Messages
108
I have got e-mailing form from this forum, I wanted to know if I could add a select all button, because it takes for ever to click on every single user, the screen shot is in the attachements, I will see if I can find the original sample of the e-mail form.
 

Attachments

  • pic.JPG
    pic.JPG
    33.2 KB · Views: 164
Searching the forum is a great way to discover and learn the answers to your Access programming questions.

Code:
Private Sub btnSelectAll_Click()

    Dim i As Integer
    Dim intListCount As Integer
    
    intListCount = YourListBoxNameHere.ListCount - 1
    
    For i = 0 To intListCount
    YourListBoxNameHere.Selected(i) = True
    Next

End Sub
 
thx, I'll try, and see if I can get it to work.
 
ghudson said:
Searching the forum is a great way to discover and learn the answers to your Access programming questions.

Code:
Private Sub btnSelectAll_Click()

    Dim i As Integer
    Dim intListCount As Integer
    
    intListCount = YourListBoxNameHere.ListCount - 1
    
    For i = 0 To intListCount
    YourListBoxNameHere.Selected(i) = True
    Next

End Sub

I have the same code for select all...but what happens is that I see all the addresses selected, but actually not transffered to the e-mail program. If I manually select all the addresses then everything's OK. What might be an isuse here?
 

Users who are viewing this thread

Back
Top Bottom