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 using a
macro to toggle the Visible bit (SetValue), but i want to add a filter
which would, when i press the button, compare the field value (string)
with another string, "No Action" for example, and then decide wheter to
hide the field or not.
What I have now looks like that:
IF ([...] = "No Action", [...].[Visible] = No, [...].[Visible] = Yes)
But it doesnt work at all. I tried changing the syntax without success.
Could anyone give me a hand plz?
Thanx alot
Mike 1 3872
"Mike" <la***********@ gmail.comwrote in
news:11******** **************@ d34g2000cwd.goo glegroups.com:
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 using a macro to toggle the Visible bit
(SetValue), but i want to add a filter which would, when i
press the button, compare the field value (string) with
another string, "No Action" for example, and then decide
wheter to hide the field or not.
What I have now looks like that:
IF ([...] = "No Action", [...].[Visible] = No, [...].[Visible]
= Yes) But it doesnt work at all. I tried changing the syntax
without success. Could anyone give me a hand plz?
Thanx alot
Mike
Forget the f'ing macro. Use a command button. In the Command
button's OnClick event, put the following line ov visual basic,
substituting appropriate field names and strings.
me.txtBoxToHide .visible = (me.txtboxField toCheck = "text to
check").
If it works backwards, make it .visible = NOT (me.
--
Bob Quintal
PA is y I've altered my email address.
--
Posted via a free Usenet account from http://www.teranews.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: leegold2 |
last post by:
I wondered if anyone would give me code- I think it would be easy, but
I'm a complete newbie. What I want to do is to show many tables in a
brief truncated format and then for each table offer the user the
ability to toggle so they can see the full content of each table
individually. The code I got from the net below works fine for *one*
table but when I try to add a 2nd table it does not work. How can I
apply this toggle individually to...
|
by: Lyn |
last post by:
Hi,
I am working on a genealogy form. The only table (so far) lists everybody
in the family, one record per person. Each record has an autonum ID.
The parent form (frmMainForm) displays the data in each record, which
includes the ID of the father and the mother (who also have records in the
table). One record per form.
I have a Tab Control in the form, and in one of the tabs I have a subform
(sfmSiblings) in which I wish to list...
|
by: Ray |
last post by:
I recently upgraded from Access 97 to Access 2003 and just enter some new
data into table via an input form. The form has one hyperlink field to
contain a file path. In Access 2003, it appears not to accept file path and
adds some additional characters, i.e.,%20 between space of the file path.
Can someone advise why it happens and if I can use the old method to store
the file path.
Thanks,
Ray
|
by: Dixie |
last post by:
Can I set the Format property in a date/time field in code?
Can I set the Input Mask in a date/time field in code?
Can I set the Format of a Yes/No field to Checkbox in code?
I am working on a remote update of tables and fields and can't find enough
information on these things.
Also, how do you index a field in code?
|
by: Neil Coleclough |
last post by:
I am constructing a database to process product returns for my Company.
I have a number of toggle buttons to identify the stage to which each
return has been processed. For example, clicking the first button
confirms that the goods are now in our building awaiting initial
processing. This button then fires off an email to our warehouse staff
alerting them to the fact. I want to restrict these buttons to single
use, so that once the email...
| |
by: Dica |
last post by:
i want to set up my aspx page with a hierarchical navigation system. first
the user has to select to "-- Select An Action --", which could be either
"Add Item" or "Edit Item". If the user selects "Edit Item", i show a list of
items they can select. once selected, i show the input form, which has all
the item details. conversely, if the user selects "Add Items", i skip
showing the "Select Item" drop down and go straight to showing the item...
|
by: cwoll |
last post by:
I am runing this function to toggle buttens to display an "X" when they
is selected, the butten is linked to a yes/no field. This function
works good, the problem I am having is that when I make a new record
the "X" from the last record I looked at are still there, but the
bottens are not selected nether should they be. How do I clear every
thing when creating a new record?
Any help would be apprecated.
Clarence Wollman
Function...
|
by: plumba |
last post by:
Hi
I have a check box which when ticked displays the sumit buttons of a form and gives the checkbox field a value of "agree".
I would like to set the check box to hide the section of the form if the check is removed.
I have included a small sample code from my form:
<html>
<script>
function toggle_display() {
var form = document.getElementById('hidesubmit');
|
by: Chuck |
last post by:
How can I make an array of command buttons (or toggle buttons) on a form and
have a text box on the same form display the index of the button clicked? This
works very well in VB6, but I can't duplicate the action in Access.
Chuck
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |