Solved

Coding simple check boxes.

Posted on 2004-09-27
5
162 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
Comment Utility
?? 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
Comment Utility
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
Comment Utility
... I mean you've answered my question within your answer ........loooooooooooong day .huh
0
 
LVL 34

Accepted Solution

by:
flavo earned 250 total points
Comment Utility
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
Comment Utility
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now