473,394 Members | 1,887 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,394 software developers and data experts.

Making a control within 1 record of a continuous form invisible

50
Hi guys hope you can help...

...do you have any idea how you can set a control's (within a single record in a continuous form) property to visible=false depending on the outcome of an update within the same record.

i.e. I have a work category combo box within a subcontinuous form... when you update the category to 'absent', I want to make the 'Job Number' control in that record invisible as it is no longer relevant... i don't however want to make EVERY 'Job Number' control invisible throughout the subcontinuous form.

Many thanks in advance

Olly
Apr 23 '08 #1
2 5045
Stewart Ross
2,545 Expert Mod 2GB
Hi Olly. In effect there is only one set of controls on a continuous form, which are repeatedly shown for all members in the form's recordset. If you set a control to be invisible it affects all rows shown on screen simultaneously, not just the current row you are on. This leads to disconcerting changes in the appearance of the form depending on the On Current events that fire as users move from row to row.

Need to reconsider the approach, I think, as setting visible on or off is not going to work in this case.

-Stewart
Apr 23 '08 #2
missinglinq
3,532 Expert 2GB
Stewart is correct, of course, in stating that this cannot be done using code. However, if you're willing to make a minor change to the appearance of your textbox, you can get it to work through Conditional Formatting.

In Design View, select the JobNumber textbox then goto

Properties - Format and set these Properties:

Backstyle Normal
Back Color 16777215
Special Effect Flat
Border Style Solid
Border Color 12632256
Border Width Hairline

Now, with the textbox still selected, on the menu goto
Format - Conditional Formatting and use

Expression Is [Category] = "absent"

Now set both the Back Color and Fore Color to gray. When the palette for each comes up, it's the gray on the 4th row, right most column. Click Okay and you're set.

LINQ ;0)>
Apr 23 '08 #3

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

Similar topics

2
by: John Hargrove | last post by:
I'm having trouble setting decimal place values in the results field of a sample management database I'm building for an environmental testing laboratory. The degree of sensitivity varies among...
3
by: Pat | last post by:
Hello, I've used Sum() to total bound fields on a continuous form with no problem. However, I now have a continuous form, on which I use an unbound field to calculate the number of hours between...
1
by: PCB | last post by:
Hi all, Not sure if this is possible, but can I change the controls of a command button on a per record bases in a subform. In my case, I would like to make a command button visible only if...
14
by: Mark | last post by:
How can the instances of a textbox control on an continuous form be addressd? Can a specific instance be addressed? For example, a continuous form has ten records. How can the textbox for the...
1
by: jodyblau | last post by:
I have a form that is in Continuous form. In each record there is a button next to the a date box. When the button is pushed, the calendar control is set to visible (rather than in a seperate pop...
4
by: rcwoodard | last post by:
Hello all. I have a continuous form that I need to make a field invisible or visible depending on the selection in another field. I have tried using Form_Current() and the following code: ...
0
by: Andrew | last post by:
Hi all A quick question which I've not been able to solve from trawling the web. Is it possible to have a control in the detail section of a form set to a default view of "Continuous" which...
8
by: JohnDoe528 | last post by:
Using Access 2000 on XP, I have a continuous subform that lists the different licenses attributed to a person selected (current record of the main form). This is what each line of the sub form looks...
56
by: csolomon | last post by:
Hello: I have something I would like to do and I was wondering if tab controls was the best route to accomplish it. I have 5 categories of material types. I created the application from an...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...

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.