473,498 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how field2 disable by value of field1

1 New Member
I Create form in which current add text box,Is permanant add. same as current add.checkbox and permanant add. textbox field so i want diasble permanant add textbox by value yes in checkbox only. pls help me
Oct 14 '15 #1
1 770
hvsummer
215 New Member
your description really make us headache lol, not by the request, but the grammar, and word...

ok, first thing to do, you need to use me.control.enable = false to disable a field. then you said, when you tick a checkbox, it'll disable a field ? then just set onclick event tickbox
Expand|Select|Wrap|Line Numbers
  1. private sub name_onclick()
  2. if me.checkbox = true then
  3. me.nameOfControl.Enable = false
  4. me.refresh
  5. else
  6. me.nameofcontrol.enable = true
  7. me.nameofcontrol.requery
  8. end if
  9. end sub
  10.  
Oct 14 '15 #2

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

Similar topics

5
9905
by: JeffFinnan | last post by:
Is there a way to have a text input field equal some variable value so that it changes if that variable changes? It does not have to by dynamic. <INPUT TYPE="TEXT" NAME="hW" size="4" value=some...
4
3006
by: ZyPhiX | last post by:
Hi, I've got a little problem: I'm trying to make a webpage with a few scrolldown menu's and I want to count the values of them. In the scrolldown menu's are no numeric values but the have to...
2
2068
by: Douglas Buchanan | last post by:
This is a mystery! Why does the boolean value of a record change without my input. What follows describes the situation and the behavior. Table1: Field1: Text Field2: Yes/No Form1 has two...
1
1604
by: pelcovits | last post by:
I am trying to set the default value for one field (call it Field2)in a form to equal the value of another field (call it Field1). I have read enough on the web to realize that I should be writing...
2
1208
by: Johnny Gardner | last post by:
I'm hoping this is simple: field1 | field2 abc-123 def-456 abc-123 I need to update field2 to everything that comes after the dash in field 1. So final result would be
17
2013
by: adburne | last post by:
Hi I'm a newbie in postgresql, I came from MSSQL, MySQL and now I'm testing postgres. In mysql there is a way to make a second autoincrement field, just: create table table1 (field1 integer,...
1
1534
by: Xerxes | last post by:
Hi, I am trying to pass the value of a field to a PHP file like this: <input type="hidden" name="field1" id="field1" value="123"> <input type="hidden" name="field2" id="field2" value="456"> ...
12
1997
by: Sheau Wei | last post by:
1. let say my table in MySQL have a column call NUMBER. In this column it would be value 1,2,3. Now i want to make the 1,2,3 as option to user to choose. what the code should be? 2. is it this...
5
1603
by: rendfox | last post by:
I'm new to PHP so bear with me. This is part of some php that checks if an entered "code" is valid, then it sends additional info to a sql database. I want to check field2 and if the value is...
0
7004
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
7167
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
7208
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...
1
6890
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...
0
7379
tracyyun
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...
0
4593
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3095
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...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1423
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 ...

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.