473,503 Members | 479 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 3897
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...
1
4223
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...
7
3004
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...
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...
1
1212
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...
14
1574
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...
2
9128
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...
3
7064
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...
5
2999
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...
1
6995
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
7463
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
5581
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5017
isladogs
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...
0
4678
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
3168
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
3157
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1515
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 ...
0
389
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...

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.