473,803 Members | 3,738 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Singling out fields on Continuous Forms

Cro
Dear Access Developers,

I am developing a form with 'default view' set to "continuous forms".
I am suffering with a problem I can't yet see a solution too.

Each record has many fields. Two fields I would like to add a little
extra functionality to are a check box and a combo box. More
explicitly, I would like the 'enabled' property of a combo box control
to be dependent on the value of a check box (a 'yes/no' field) in the
same record. When the check box is unchecked the combo box should be
available and when the check box is checked, the combo box should be
unavailable.

My efforts thus far have disabled every single combo box on the form
rather than only disabling the combo box for one particular record.
How can I ‘single out' particular controls for particular records?

I also have a related problem in another form.

I am using rectangles to show staff availability for certain hours of
a given day. My form (again with 'default view' set to "continuous
forms") is based on a table called 'Staff Hours' with fields:

Name (PK), Date (PK), 0000-0010, 0020-0030, .... , 2300-0000

(Where 2300-0000 holds the data 'yes' or 'no' depending on whether
that particular staff member is working on a particular date in the
hour 11pm to 12pm).

Unfortunately, when I set the colour of the rectangles according to
the data in the table, the colour is set for every rectangle on the
form rather than just for the particular record it is appropriate to.

These two problems are related and I'd be extremely grateful for a
solution.

What do you think?

Thank very much.

Regards,

Cro
Nov 13 '05 #1
2 4018
Cro,

Re: Checkbox and Combobox
Look at your form in design view. There is only one combobox there. When you see
your form in form view and you see multiple records, there is still one combobox
but an instance of that same combobox for each record. The long and short of it
is that if you disable the combobox, since there is only one, it will be
disabled in every instance, ie, every record. You need to change your logic to
something else rather than disabling the combobox. Take a loof at conditional
formatting to see if there is something there you might use.

Re: Staffhours Form
To begin with, your table has fundamental problems. The first problem is that
the table is not normalized. You should not have multiple time fields but rather
a table such as:
TblStaff
StaffID
FName
LName

TblTimeOfDay
TimeOfDayID
TimeOfDay

TblStaffAvailab ility
StaffAvailabili tyID
StaffID
AvailabilityDat e
TimeOfDayID
Available (Y/N)

The second problem in your current table is the field named "Date". Date is a
reserved word in Access and should not be used as a field name. Note above, I
used "AvailabilityDa te" as the field name.

You now need a form/subform. The main form should be base on a query based on
TblStaff to be able to display staff records in alphabetical order. The subform
should be based on a query based on TblStaffAvailab ility. The LinkMaster and
LinkChild properties of the subform control should be set as StaffID. Again,
there is one control for each field in the subform so you can't set the the
color of the rectangle the way you are without setting the color of all
instances of the same rectangle. Rather, use conditional formatting here - it
will give you the effect you want.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdata sheet.com
www.pcdatasheet.com

"Cro" <th*******@hotm ail.com> wrote in message
news:24******** *************** ***@posting.goo gle.com...
Dear Access Developers,

I am developing a form with 'default view' set to "continuous forms".
I am suffering with a problem I can't yet see a solution too.

Each record has many fields. Two fields I would like to add a little
extra functionality to are a check box and a combo box. More
explicitly, I would like the 'enabled' property of a combo box control
to be dependent on the value of a check box (a 'yes/no' field) in the
same record. When the check box is unchecked the combo box should be
available and when the check box is checked, the combo box should be
unavailable.

My efforts thus far have disabled every single combo box on the form
rather than only disabling the combo box for one particular record.
How can I 'single out' particular controls for particular records?

I also have a related problem in another form.

I am using rectangles to show staff availability for certain hours of
a given day. My form (again with 'default view' set to "continuous
forms") is based on a table called 'Staff Hours' with fields:

Name (PK), Date (PK), 0000-0010, 0020-0030, .... , 2300-0000

(Where 2300-0000 holds the data 'yes' or 'no' depending on whether
that particular staff member is working on a particular date in the
hour 11pm to 12pm).

Unfortunately, when I set the colour of the rectangles according to
the data in the table, the colour is set for every rectangle on the
form rather than just for the particular record it is appropriate to.

These two problems are related and I'd be extremely grateful for a
solution.

What do you think?

Thank very much.

Regards,

Cro

Nov 13 '05 #2
Cro
Thanks very much for the help. I was able to acheive all the
functionality I needed by using conditional formatting.

"PC Datasheet" <no****@nospam. spam> wrote in message news:<b1******* **********@news read2.news.atl. earthlink.net>. ..
Cro,

Re: Checkbox and Combobox
Look at your form in design view. There is only one combobox there. When you see
your form in form view and you see multiple records, there is still one combobox
but an instance of that same combobox for each record. The long and short of it
is that if you disable the combobox, since there is only one, it will be
disabled in every instance, ie, every record. You need to change your logic to
something else rather than disabling the combobox. Take a loof at conditional
formatting to see if there is something there you might use.

Re: Staffhours Form
To begin with, your table has fundamental problems. The first problem is that
the table is not normalized. You should not have multiple time fields but rather
a table such as:
TblStaff
StaffID
FName
LName

TblTimeOfDay
TimeOfDayID
TimeOfDay

TblStaffAvailab ility
StaffAvailabili tyID
StaffID
AvailabilityDat e
TimeOfDayID
Available (Y/N)

The second problem in your current table is the field named "Date". Date is a
reserved word in Access and should not be used as a field name. Note above, I
used "AvailabilityDa te" as the field name.

You now need a form/subform. The main form should be base on a query based on
TblStaff to be able to display staff records in alphabetical order. The subform
should be based on a query based on TblStaffAvailab ility. The LinkMaster and
LinkChild properties of the subform control should be set as StaffID. Again,
there is one control for each field in the subform so you can't set the the
color of the rectangle the way you are without setting the color of all
instances of the same rectangle. Rather, use conditional formatting here - it
will give you the effect you want.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdata sheet.com
www.pcdatasheet.com

"Cro" <th*******@hotm ail.com> wrote in message
news:24******** *************** ***@posting.goo gle.com...
Dear Access Developers,

I am developing a form with 'default view' set to "continuous forms".
I am suffering with a problem I can't yet see a solution too.

Each record has many fields. Two fields I would like to add a little
extra functionality to are a check box and a combo box. More
explicitly, I would like the 'enabled' property of a combo box control
to be dependent on the value of a check box (a 'yes/no' field) in the
same record. When the check box is unchecked the combo box should be
available and when the check box is checked, the combo box should be
unavailable.

My efforts thus far have disabled every single combo box on the form
rather than only disabling the combo box for one particular record.
How can I 'single out' particular controls for particular records?

I also have a related problem in another form.

I am using rectangles to show staff availability for certain hours of
a given day. My form (again with 'default view' set to "continuous
forms") is based on a table called 'Staff Hours' with fields:

Name (PK), Date (PK), 0000-0010, 0020-0030, .... , 2300-0000

(Where 2300-0000 holds the data 'yes' or 'no' depending on whether
that particular staff member is working on a particular date in the
hour 11pm to 12pm).

Unfortunately, when I set the colour of the rectangles according to
the data in the table, the colour is set for every rectangle on the
form rather than just for the particular record it is appropriate to.

These two problems are related and I'd be extremely grateful for a
solution.

What do you think?

Thank very much.

Regards,

Cro

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2014
by: Phil Stanton | last post by:
I have a form of club members with a continuous subform on it showing boat details. I hold the boat length and beam (in meters) in a table. On the subform I also calculate and show the imperial equivalent length and beam. You can enter lengths in either the metric box when an AfterUpdate event shows the imperial eqivalent, or converseley you can enter the lenght in feet and inches in the imperial box and on AfterUpdate the metric...
3
4595
by: S P Arif Sahari Wibowo | last post by:
Hi! I would like to make an editable continous form, where most fields will be from table A and editable, except 1-3 fields are a glimpse into table B and uneditable. Table A relate to table B in one-to-many relation. I don't need to see all values in B that relate to the particular record in A, just one value in each field in B, preferably the last entered. This is to ease a person that need to manually fix and encode
2
2730
by: Shawn Yates | last post by:
I have a form with two subforms on it which are both continous forms. The subform on the left shows the tasks that the employee was assigned to accomplish (each as a seperate record) while the one on the right is where they put what tasks they actually did. It is important that I keep the assigned tasks unmodified because we eventually will be looking at the difference between assigned and accomplished tasks. I have a button on each task...
2
2406
by: panwala_bhavesh | last post by:
Thanks in advance... I have a form displaying the results of a query in a continuous form style. I want to be able to double-click on the key field of the form (a textbox, in this case a AssetID) and use this to populate the AssetID textbox of another form. Any ideas on how to link these? Thanks! Bhavesh
5
27607
by: Michael R | last post by:
Searching the net I've found a simple technique to add row numbers and alternate colors (for the even and the uneven row) to a continuous form. 1st step: Create a textbox, send it to background and select the first color. .ControlSouce =fRowNum(False) .Name = RowNum 2nd step: Add the following function to the form module: (for row numbers) Public Function fRowNum(Reset As Boolean) As Long Static I As Integer
2
3361
by: seltzer | last post by:
I am using Access 2000 but I also have the 2003 version. I am working on creating a data entry form in Access for a research study. Since there is a maximum of 255 fields per table in Access, I have to split the fields up (unfortunately). I am creating a form for each section and all of the respective fields, and then I am putting all these forms into one larger form as subforms. I have a few questions & am hoping someone has answers: ...
1
3252
by: rpboll | last post by:
I am looking for the best way to accomplish the following continuous forms concept. There are Five Groups: A, B, C, D, E Each group has eight Members: a, b, c, d, e, f, g, h Each Member is seen as a row in a continuous form like:
1
6219
by: G04 | last post by:
Hi All, I have a continuous form with all records. For each field there is a combo in the form header and the form also contains a Toggle button "Apply Filter". When clicked, it changes to "Cancel Filter". Then an SQL string with condition meeting the criteria input in the combo boxes is built. I have noticed that when certain fields are not filled in (no space, nothing), the record is simply not shown. The empty field is not necessarily...
5
4069
by: grahamib | last post by:
I have a form running in access 2003. The forms property is set to continuous forms so that all records from an underlying query can be diaplayed. On the form are 12 sets of fields from .......to..... In the header of the form is a single unbound field that is populated with a date picker and a command button. The idea is that when a date is entered in the unbound field and the command button is pressed there is a graphical view of the status...
0
9703
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
9565
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
10550
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...
0
10317
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 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...
0
10069
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 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...
0
5501
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
4275
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
3799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2972
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.