473,395 Members | 1,885 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

check box value to remain even if form is closed

49
I have a check list in my database that is not actually tied to any record source, its just a check list for the user to use as a visual aid as they complete a sequence of tasks. These tasks may be spread over a day or two as there are several of them and they are time consuming. The idea of the check list is to keep track of what has been completed w/out using a piece of scratch paper.

I want the check box to remain checked even after the form is closed, so when they open the form again, the checks they made last time are still there.

I have a button that will clear the checks when the sequence is started again.

I see no reason to create a table to keep these since the data is not static, nor is it required by anyone other than the viewer.

I tried to set the default value to 1 on the click event, seems that would be the logical step - but it isn't working...

Expand|Select|Wrap|Line Numbers
  1. If Check73.Value = 0 Then
  2. Check73.DefaultValue = 1 
  3. Else
  4. Check73.DefaultValue = 0
  5.  
  6. DoCmd.Save
  7.  
  8.  
i did try -1 as well and still when i close the form, all the checkboxes are rest o "unchecked"

thanks for any suggestions...
Oct 2 '15 #1
4 1929
Seth Schrock
2,965 Expert 2GB
I think that it would honestly be easier to create a table. You mention that it is only for the viewer. This leads me to think that you have a front end/back end setup for multiple users. If this is the case, then you can make this table on the front end so that it is only on the user's computer and no one else sees it.

If the database can close in the middle of a task (like when they go to lunch or the computer crashes), then a table is the only way to save this information. The only other viable way that I can think of to do this would be to use temporary variables (tempvars), but then you have to code the link instead of letting access take care of it.
Oct 2 '15 #2
jforbes
1,107 Expert 1GB
I agree with Seth that a Table is the way to go.
I see no reason to create a table to keep these since the data is not static, nor is it required by anyone other than the viewer.
It may not be required by anyone but the viewer, but it is Static as you are expecting the checkboxes to retain their value between instances. I would create a table and include a UserName as a column, then include the UserName as part of the Filter for the Query. That way everyone has their own set of rows.
Oct 2 '15 #3
sooli
49
Ok... well... i was hoping to avoid that, in order for me to set it up the way I need it set up, i am going to need a table with 170 variables that can be checked or unchecked! my poor fingers!
Oct 8 '15 #4
Seth Schrock
2,965 Expert 2GB
It would be even worse for your fingers using code. Good luck on your project and let us know if you run into anymore problems.
Oct 8 '15 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Chris Shipley | last post by:
I am trying to present a list of links on a page (Form) where each link opens a different picture gallery. I have the Form page which contains the links, a Gallery page, and several include files....
7
by: Mike | last post by:
I have to pass a date from a form to a report query. I have written a query that works fine when I execute from SQL view, But I dont know how to pass a value from the form to this query. SELECT...
0
by: kufre | last post by:
I need some help. I have an option group button with two check box inside the form. The checkbox are called Active and Inactive. The way the Inactive box works now is when I check it a blank new...
11
by: chrisc | last post by:
Hello, My infamous manufacturing database continues to bane my life, mostly because I'm really stumbling around in the dark here! What I am trying to do is populate some fields automatically...
3
by: Shelby | last post by:
Hi, how can I check that if the form is already open? Whenever I click on a button, it will open the form. I would like to check if the form is open.
1
by: CodeRazor | last post by:
In Windows app development, how can you carry a property value from one form to another? In web development, you would use session. I have been trying to use properties. I have a class with a...
0
by: keithb | last post by:
How to set up Treeview so that segments opened by user remain open until closed by user. Thanks, Keith
1
by: camillo | last post by:
How to check if a file is closed? On Win32 you can call CreateFile with write and share write and if it raises an error, the file is closed. How to do it in Python??? Thanks, Camillo
17
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I get the value of a form control? -----------------------------------------------------------------------...
10
by: Kelly | last post by:
Can anyone tell me what I'm doing wrong here? ================================== <html> <head> <title>Test Form</title> <script language="JavaScript" type="text/javascript"> </head>
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.