Solved

Coding simple check boxes.

Posted on 2004-09-27
5
165 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 250 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

830 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