473,378 Members | 1,314 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,378 software developers and data experts.

Access Form with checkbox toggled textboxes to make visible

im trying to make a form that has toggled textboxes based on checkboxes.

i have a lot of fields with data and i kinda want to clean it up so that only active fields are show when my workers are entering data on my form.

i have tried quite a few ways to get this done but hasn't worked yet.

here are some of the codes and events i have tried:
Expand|Select|Wrap|Line Numbers
  1. =IIf([toggle]="-1",[Data].[Visible]=True,[Data].[Visible]=False)
Expand|Select|Wrap|Line Numbers
  1. =IIf([toggle]="yes",[Data].[Visible]=True,[Data].[Visible]=False)
Expand|Select|Wrap|Line Numbers
  1. =IIf([test data toggle]="-1",[test Data].[Visible]=True,[test Data].[Visible]=False)
nothing has worked, did get an error saying object doesn't have automation object "Visible.'.

need some help.
Oct 6 '14 #1
2 1216
zmbd
5,501 Expert Mod 4TB
+ Version of Access?
+ Your level of expertise?
+ Consider multiple forms showing the proper fields for data entry based on the user.
+ You are not very clear as to where you have attempted to place your "code"
+ You do not use quotes around numerical values such as -1
Oct 7 '14 #2
twinnyfo
3,653 Expert Mod 2GB
Akihoshi,

Try something like this:

Expand|Select|Wrap|Line Numbers
  1. Me.txtData1.Visible = me.chkBox1
This would be put in an after update event for your check box. However, you say you have many fields, so this can become cumbersome. There are ways to cycle through your controls. But, you have provided very litte information on what your form looks like, as Z has already stated.
Oct 8 '14 #3

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

Similar topics

2
by: RC | last post by:
Order for PHP get the array from a HTML form checkbox or select tag. The HTML name MUST with . For example: <form methos=POST action="myfile.php"> <select name="pets" multiple> <option...
9
by: Frances | last post by:
Hi All, * PREMISE * I'm creating an Access form with 150 items subdivided into 20 categories. Multiple categories (and items) can be selected so my user wants checkboxes. All of the options...
6
by: Thelma Lubkin | last post by:
I am trying to modify an Access form that allows a user to specify the information s/he needs from a census-type database. The form's code builds a SQL statement from the user's request, and...
2
by: liljet | last post by:
***From previous post*** Is it possible to have an Access form that displays in a text box the last modified date of c:\myworkbook.xls? try setting the data property of the text box to ... =...
1
by: Mike | last post by:
Hi all, Hum i just erased the whole message by mistake, :( Ok so i want to hide a specific field in an Access form using a toggle button, but i cant seem to get the right syntax. Right now im...
1
by: Pa1n | last post by:
So basically I've made a database in MS Access.. Quite huge one. I may sound like a total newbie, but thats somewhat what I am. Then I made a 40 fields query from 3 databases, 2 of the databases...
1
by: make1circle | last post by:
Hi all, It's a novice question and hopefully someone could help me out. I've designed an access form for entering patient information. Right now it needs to be modified in the way that the...
12
by: tadisaus2 | last post by:
Hello, Checkbox form validation - how to make a user select 4 check boxes? I have a question of a few checkboxes and how do I require a user to check 2 checkboxes (no more, no less)? Here is my...
1
by: nassersh | last post by:
I am using a bound control to embed word documents within an access form. I have created two buttons on the form One to embed aand display and one to close. I embed one doc and then save the doc...
2
by: buddyr | last post by:
Hello, I saw an example of microsoft access form based on table. the form had combo box to select employee and and then labels and textboxes below. The form had a pie chart that changed to...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.