473,657 Members | 2,266 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

enable fields on click of a check button

51 New Member
i need help i search the forum but i cant find a thread like this...

i have check box i named isd item?(yes or no)
then i have infos like price, deals, cost, gp, etc below...is it possible that by default the info fields for isd item will be disabled given that the default value for the check box is no and when i check the box the info field will be enabled...

please give me example or link how can i code this...thanks for the help
May 28 '07 #1
4 3907
nico5038
3,080 Recognized Expert Specialist
The basic approach will be to have code added to the OnClick event like:
Expand|Select|Wrap|Line Numbers
  1. IF Me![isd item] = True then
  2.     Me.field1.enabled = true
  3.     Me.field2.enabled = true
  4.     ' etc.
  5. else
  6.     Me.field1.enabled = false
  7.     Me.field2.enabled = false
  8. end if
  9.  
To synchronize the fields for scrolling through records you can add to the OnCurrent event the same lines, or better Call the OnClick event of the checkbox.

Nic;o)
May 28 '07 #2
rockdc1981
51 New Member
given:
i have a continous form view and i can change to datasheet view
issue #1-on form load the isd info fields are not disabled...when in fact the default value for isd item is no or false
issue # 2-when i select no for [isd item?], the other form isd info becomes disabled when in fact the [isd item?] field is selected as yes
May 29 '07 #3
nico5038
3,080 Recognized Expert Specialist
In a continuous (or datasheet) form this trick won't work. :-(
Access doesn't make difference between the properties of the controls in such a situation.

Personally I add in a situation like this another subform that's in sync with the first subform, but showing all always is a lot easier :-)

Nic;o)
May 29 '07 #4
rockdc1981
51 New Member
well thanks a lot for the help man..i learned something.God Bless..
May 30 '07 #5

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

Similar topics

1
306
by: Steve | last post by:
Using Visual Studio .NET 2003 with C# I have a screen which is used to View, and Update a load of fields. The fields are displayed in TextBox objects and are databound to a typed dataset. I have a toolbar with Add Update and Save buttons on it. When the user goes into this screen I want it view only, so all the text boxes are disabled. When they click the update button i want to rip through and enable all these objects. How can I do...
1
4243
by: hortoristic | last post by:
We are using JavaScript to Enable/Disable certain fields on web pages based on business rules. A simple example is if when using an option type tag, and the two options are Yes and No. If YES is selected - enable a field to use the M$ Datepicker. Using the code below works for most of our fields, however the problem is that when the field is re-enabled - it remembers the original date or data prior to it being disabled - despite the...
7
3014
by: spshealy | last post by:
Anybody know how to enable the new directio option in DB2 FP4(This is a new feature in FP4) for AIX. For NT its analog is enabled by the registry option DB2NTNOCACHE... but I don't see anything like DB2AIXNOCACHE of DB2AIXDIO... I have looked through all the new documentation(there doesn't seem to be that much updated documentation for FP4). TIA, Scott
1
602
by: Suni | last post by:
Hi everybody, But what I am trying to do is like, there are 2 forms, and if I click on the button in form1, it'll open up form2 and disable the button in form1. Then when I click on the button in form2, it will close form2, and then enable the button in form1. Could you please give me some hints about this? Thanks, Suni
1
1221
by: Yoshitha | last post by:
Hi inorder to display check boxes in datagrid, in itemtemplate i had written like this. <input type="checkbox" id="chkclient" runat="server" name="chkclient" disabled> also am using <asp:editcommandcolumn>.
14
1587
by: Xero | last post by:
Hello. I am using Visual Studio .NET (Academic Edition) to write a VB program. My computer is running Win XP Pro. I am writing a calculator and requires users to enter two numbers. After entering the numbers, they should click a button called 'Display Results'. How can I display a dialog box prompting the users to check their entry if they left any of the boxes empty? I have tried the .IsNaN function but in vein. Thanks.
2
9145
by: bartlomiej.szafraniec | last post by:
Hi! I'm trying to implement custom button. But I don't want to extend Button class. I want to extend Control class. I want to implement Enable disable functionality. But unfortunatly when control is in Enable = false state the on click event is not called but that event is passed to parent object. How to convince my custom button class not to pass Click events to parent classes when my class is in Disabled state?
3
7091
by: James | last post by:
Hello, I am having a problem with a MS Access 2000 Database that I partially helped create. I am recording visits that registered customers make to our store. I have a list of all the elidgible people that can shop, and when I click a button, it records a visit for today in Date/Time format. My problem is that the button that records the visit can be clicked multiple times, and I am trying to find a way to lock it for a few seconds so...
5
3007
by: Dan Tallent | last post by:
I have a scenerio when my forms are first opened that the user cannot modify the data. The fields are disabled to prevent them from modifying any of the data. If a user wishes to modify the data he would be required to click a "Edit" button which will test permissions or status information of the record. If the application determines it is ok for the user to modify the data, it enables the fields where the user now can make changes as...
0
8407
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, 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...
0
8319
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8837
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, 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...
1
8512
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5638
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4171
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...
1
2739
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
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1732
bsmnconsultancy
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...

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.