473,396 Members | 2,109 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.

Hidden fields become visible when filter by form--how to prevent

NTE
Access 2000,

My application has a main form that the users interact with. There are
2 hidden fields.

When they select "filter by form" from the menu, the hidden fields
become visble.

Is there a way to prevent this, or to reset them to visible=false?

It did not appear that any of the events would have the correct timing.

Thanks,
Nicole

Nov 13 '05 #1
5 2901
On 18 Aug 2005 12:02:36 -0700, NTE wrote:
Access 2000,

My application has a main form that the users interact with. There are
2 hidden fields.

When they select "filter by form" from the menu, the hidden fields
become visble.

Is there a way to prevent this, or to reset them to visible=false?

It did not appear that any of the events would have the correct timing.

Thanks,
Nicole


They do not become visible for me (if I try what I think you mean).
Perhaps there is code in the Form's ApplyFilter event that turns them
visible.
Perhaps try, in the ApplyFilter event:
Me![ControlName1].Visible = False
Me![ControlName2].Visible = False
etc.

--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 13 '05 #2
NTE
Fred,

thank you for the response. I did try what you suggested. However,
even without that code in the ApplyFilter event, the fields return to
invisible when the user chooses the apply filter tool and gets their
results. So this is the series of events:

1. main form is opened, hidden fields are not visible (controls visible
property was set to no at design time)
2. user chooses filter by form tool from custom menu (which is just a
subset of the regular menu)
3. Form switches to filter mode, hidden fields become visible (and are
editable!, where at design time I had them set to locked)
4. One of the non-hidden fields is used for the filter query, and apply
filter is choosen
5. The view switches back to the normal form (filtered), and the hidden
fields are now no longer visible.

So, I'm not sure if there is another place where I can control
visibility. I thought that by making controls not visible at design
time that they would never be visible...........
Nicole

Nov 13 '05 #3
"NTE" <ne******@labyrinth.net> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Access 2000,

My application has a main form that the users interact with. There are
2 hidden fields.

When they select "filter by form" from the menu, the hidden fields
become visble.

Is there a way to prevent this, or to reset them to visible=false?

It did not appear that any of the events would have the correct timing.

Thanks,
Nicole


Nicole,
I wonder if selecting "Filter By Form" somehow triggers datasheet view.
There is another property called columnhidden. On some forms, I allow my
users to freely switch back and forth between Form view and Datasheet view.
So I always set visibility options by setting both properties:

Me.txtControl.Visible = False
Me.txtControl.ColumnHidden = True

See if this corrects your problem.
Fred Zuckerman
Nov 13 '05 #4
NTE
Hi Fred,

thank you for the reply. And I will look into what you have suggested.

After thinking about it for a few hours, and wondering why FredG above
could not duplicate the problem, I realized I left out one important
thing. The hidden controls are on a tab control.

I tried a form with no tab control and did not have the problem.

So, it appears to be related to filtering on a tab control. I'll
search the newsgroup for that topic, and if you have any insight I
would appreciate hearing from you. My apologies for the oversight.....

Nicole

Nov 13 '05 #5
NTE
SOLVED MY OWN PROBLEM.

I set the enabled property of the controls to "no" (or false) and now
they do not show up when the form goes into filter by form mode.

Sorry for the trouble, appreciate the effort.

Nicole

Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ryann | last post by:
Hello. I am creating a form that has 5 steps/pages. Each page contains about 20 fields. But I don't want to write them until they submit on the last page. I figured out that I can use hidden...
1
by: mark.reichman | last post by:
First off.. Thanks to Grant Wagner for help in a previous thread related to this one. I am at a total loss... I have multiple fields in a form with the same name. Lets call the fields with the...
10
by: Mark McLellan | last post by:
Dear all Following the oft-repeated advice here and ciwas I have made my site nearly 4.01 strict (working on it). There are some items on which I would appreciate your advice: 1. Hidden...
1
by: Andrew Wrigley | last post by:
Hi Should a hidden form become visible when all other forms are closed? This is what happens, and to ensure that it is always hidden, I have to set the on got focus event handler of the form...
5
by: Roshawn Dawson | last post by:
Hi, Are hidden fields passed in the querystring when a form is posted back? If they are, must the hidden fields be server controls in order to access them from .net code? Thanks, Roshawn
2
by: André | last post by:
Hi, I made a detailsview containing several fields for inserting only. I also made a dropdownlist which is invisible at start. Now, when clicking in a particular textbox, the dropdownlist must...
7
by: boysenberry | last post by:
Hi. I have been using hidden fields to store useful information on ASP.NET web pages between posts. I understand these are not secure because they can be read by looking at view source. I have...
4
by: minchazo | last post by:
Hello, I've been creating some forms recently in Access 2003 and using hidden textboxes quite a bit. As an example, the visible textbox CasesDone uses the DLookup function to sum the records in...
5
by: dmorand | last post by:
I'm having a strange issue with a form I'm developing. I'm saving some values to hidden fields when a user clicks a button. I setup a function which gets ran on submission of the form, but I also...
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...
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...
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
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.