Solved

Coding simple check boxes.

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
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…
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 …

919 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

16 Experts available now in Live!

Get 1:1 Help Now