If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > Access Report Clickable Checkboxes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #16 (permalink)  
Old 12-31-12, 15:21
HollyB HollyB is offline
Registered User
 
Join Date: Dec 2012
Posts: 15
Maybe I am not doing a good job of explaining what I need to do. I was tasked with creating an interactive checklist that will give the user a list based on certain criteria. I have placed the criteria on a form that user then uses to select thier criteria. They click a button that will run a query, which gives the information they need out of the table, and it is presented to them in the form of a report. Then the user has to go through each line item that was returned on the report and decide to use it or not, based on thier judegment. We would like them to be able to check a checkbox to say what they did, so they can turn it in with the project.

Having all the criteria all on one checklist will defeat the purpose of doing the query, which refines the data to only ones that will apply to the user's circumstance.

Last edited by HollyB; 12-31-12 at 15:25.
Reply With Quote
  #17 (permalink)  
Old 12-31-12, 15:23
HollyB HollyB is offline
Registered User
 
Join Date: Dec 2012
Posts: 15
Also, using the report keeps the user from somehow altering the database. Thank you for helping by the way. I have been stuck on this for some time now, trying to find a fix.

Last edited by HollyB; 12-31-12 at 15:26.
Reply With Quote
  #18 (permalink)  
Old 12-31-12, 15:30
Burrina Burrina is offline
Registered User
 
Join Date: Nov 2011
Posts: 155
Again, I would say use a form to do what you want after the query has run and the user is presented with the list of choices.Present them with a FORM instead and then finalize the Report based on what they have entered instead of trying to edit a Read Only Report. So you have a user form that runs a query and then USE another FORM to enter the final end result. I have no other suggestions to you other that this. Hope it helps.
Reply With Quote
  #19 (permalink)  
Old 12-31-12, 15:37
HollyB HollyB is offline
Registered User
 
Join Date: Dec 2012
Posts: 15
Okay, if I do it in a form is there a way to display the info in a manner where the user cannot change it?
Reply With Quote
  #20 (permalink)  
Old 12-31-12, 16:02
Burrina Burrina is offline
Registered User
 
Join Date: Nov 2011
Posts: 155
Yes, just make the fields either Visible/Invisible or Enabled or Not enabled.
Me.yourfiledname.Enabled = False makes it not editable.
Me.yourfieldname.Visible = False makes it invisible

Use code to set your criteria. If this or that, then whatever!
Reply With Quote
  #21 (permalink)  
Old 01-02-13, 10:00
HollyB HollyB is offline
Registered User
 
Join Date: Dec 2012
Posts: 15
Thanks Burrina. I added a form that would allow the user to edit the check box field and then a button opens to report then another button to export to pdf. I feel like this adds extra steps, but is still pretty user friendly and got the job done. I will see what the boss thinks. Thank you for your help.
Reply With Quote
  #22 (permalink)  
Old 01-02-13, 10:27
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 10,594
Quote:
Originally Posted by HollyB View Post
I have an Access report that populates based on results of a query. I need the report to have checkboxes on each line for the user to click on and off independently.

I have tried using unbound checkboxes on the report and when you click one, the whole list comes on/off. When I make the boxes bound to a yes/no column in the table you cannot click them at all. It gives an message at the bottom that control cannot be edited. The reports are read only.

So, how do you create checkboxes that can be clicked on or off independently in the report?

I have also tried exporting to Word, and the checkboxes do not show up. Exporting as PDF they show up, but are not functional.

Please help me. I am a newbie.
in the reports detail on format evenbt set the approipriate code


eg:-

if mycolumn1 = something then mycheckbox1 = true else mycheckbox1 = false
if mycolumn2 = something then mycheckbox2 = true else mycheckbox2 = false

to set this code open the report in design mode
select the detail section of the report
select properties (F4)
click the tab that has 'build events' in it (think it may be other properties
then build code

lets say one of your columns is called IsProjectFinished and the relevant checkbox is called ckbProjFinished
then
if IsProjectFinished = true then ckbProjFinished = true else ckbProjFinished = false

mind you if the columns in the table are boolean you cna assign the value directly
eg
ckbProjFinished.value = IsProjectFinished

bear in mind you can also use the NOT operator to set the other value
ckbProjFinished.value = NOT (IsProjectFinished)
ie whatever value IsProjectFinished is set it to the opposite
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #23 (permalink)  
Old 01-02-13, 10:33
HollyB HollyB is offline
Registered User
 
Join Date: Dec 2012
Posts: 15
Healdem,

I want the value to be dependent on the users input, not a table value.
Reply With Quote
  #24 (permalink)  
Old 01-02-13, 11:36
Burrina Burrina is offline
Registered User
 
Join Date: Nov 2011
Posts: 155
Your Very Welcome.
Reply With Quote
Reply

Tags
access 2010

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On