473,396 Members | 2,076 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,396 software developers and data experts.

Hide record in Forms if checkbox is checked

I work with a large group of people who enter tons of records each day. To seach for a specific record takes a long time. To help manage this, I have duplicated the form. One form will hold all records (open and closed) and the other form would only show the open records. In the open records form, I would like to hide a record once a checkbox is checked which indicates it is a closed record. The form was built with multiple tables.

Because I am so new to Access, if I can get an answer to this, I would also appreciate some assisance on where the code/expression/macro goes (ie OnClick?).

Thank you so much for your help!
Dec 27 '07 #1
3 12203
missinglinq
3,532 Expert 2GB
  1. Duplicate the query that your form is based on
  2. When prompted, name this new copy
  3. Open the new query in Design View
  4. In the Criteria box under the Checkbox field, enter -1
  5. Close and Save the query
  6. Go into Design View for the form
  7. Goto Properties - Data and change the RecordSource to the new query
Be sure to do something to differentiate between the two forms. I always use a different background color as well as a nice big title label, so the end users don't get confused as to which records they're dealing with.

Welcome to TheScripts!

Linq ;0)>
Dec 27 '07 #2
  1. Duplicate the query that your form is based on
  2. When prompted, name this new copy
  3. Open the new query in Design View
  4. In the Criteria box under the Checkbox field, enter -1
  5. Close and Save the query
  6. Go into Design View for the form
  7. Goto Properties - Data and change the RecordSource to the new query
Be sure to do something to differentiate between the two forms. I always use a different background color as well as a nice big title label, so the end users don't get confused as to which records they're dealing with.

Welcome to TheScripts!

Linq ;0)>

THANK YOU SO MUCH FOR YOUR HELP!
Dec 27 '07 #3
missinglinq
3,532 Expert 2GB
That's why we're here! This technique, by the way, is great for "deleting" records without actually deleting them! It makes archiving "deleted" records a snap!

Linq ;0)>
Dec 28 '07 #4

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

Similar topics

9
by: sergio | last post by:
Hi all, I have created the following script that will show/hide a menu based on checkboxes. It works fine in Opera but not on IE6! Does anybody knows a workaround this problem? Thanks for your...
5
by: Wouter | last post by:
Hi, I had a javscript what does the follow. When a checkbox is yes then i will see a form field. When a checkbox is no i dont see the form field. Can somehelp me for that script ? Greets...
10
by: DettCom | last post by:
Hello, I would like to be able to display or hide fields based on whether a specific Yes/No radio button is selected. This is in conjunction with a posting a just made here in the same group...
12
by: ATS | last post by:
I need to hide/reveal parts of a web page using javascript. I think I can do with using the <span> tag, but I've been away from it for a while and don't remember. Any pointers, examples?
4
by: David | last post by:
Hi, I have a report with a sub-report. On the sub-report I have the following data: Product | Qty | Print (As Checkbox) What I want to do is hide all lines in the sub-report where...
2
by: Advo | last post by:
Basically, ive got information in a table for the layout purposes, as its text for a questionnaire What i Need, is for instance when the user click a radio button, that information can be...
5
by: widevision7 | last post by:
I have a web site that uses the following JavaScript to hide <div> sections: <script type="text/javascript"> function showMe (it, box) { var vis = (box.checked) ? "block" : "none";...
8
by: jmarcrum | last post by:
I have a table with about 100 records. The user has the ability to click a button on the main form that will open up a "move to the next year" form. A query displays all 100 records on the...
1
by: mrsgwen90 | last post by:
I have a form in access that lets the user enter data. The data is information taken over the phone from a caller about someone who has committed a liter violation. Once the data has been entered...
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: 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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.