Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Coding simple check boxes.

Posted on 2004-09-27
5
Medium Priority
?
170 Views
Last Modified: 2012-06-27
I have 4 check boxes in a form representing files, so that when chosen by a user and clicking a command button, an import operation of every chosen file would take place.

Question: Can a check box be used  in this case (ie multiple selection)?

My real trouble is "how do I code these check boxes" on my command button.
Please help ! Thanks a milliom ........
   
0
Comment
Question by:Dayim
  • 3
  • 2
5 Comments
 
LVL 34

Expert Comment

by:flavo
ID: 12165152
?? do you mean looping through the checkboxes??

private sub someButon_click()

If me.chkFile1.value = -1 then
   'do some thing with file 1
end if

If me.chkFile2.value = -1 then
   'do some thing with file 2
end if

If me.chkFile3.value = -1 then
   'do some thing file 3
end if

If me.chkFile4.value = -1 then
   'do some thing with file 4
end if


Not sure what you area asking mate

Dave
0
 

Author Comment

by:Dayim
ID: 12165230
Thank you very much mate !! You've asked my question within your answer !

Cheers ..
P.S. I am new to this site. Do I have to do something to give you your points or do you automatically recieve them...

Thanks again .
0
 

Author Comment

by:Dayim
ID: 12165233
... I mean you've answered my question within your answer ........loooooooooooong day .huh
0
 
LVL 34

Accepted Solution

by:
flavo earned 1000 total points
ID: 12165256
There is an accpet button to the right of my name.  A new screen will pop up and you'll have to give me a grade.  A for Excelent, B for good or C for crap.

Also see here if you need help


http:\\help.jsp#hs4
0
 
LVL 34

Expert Comment

by:flavo
ID: 12165259
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question