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

combo boxes and check boxes

Hello,

I am new to the advanced level of access, and I have quite a few
changes to make to an existing database.

The current database's main form needs to have additional check boxes
added to it which in turn are meant to be linked to relevant tables and
a combo box which hold relevant data specific for it.

E.g. If checkbox1 is selected then, in the combo box, all the relevant
data types would appear for checkbox1 from which the user can choose
from.

If checkbox2 is selected then the combo box would display the list of
data types only relevant to it.

I have created the check boxes and the relevant tables which will hold
the information. I also would like to know how I can have only one
check box selected at any time. I am aware of the options group, but is
there another way?
The Combo Box
The current database design is such that there is a text box which
needs to be converted to a combo box. All the information within the
text box needs to be preserved. How would I preserve that data and
make sure when converting to a combo box, only the new values will
appear in the drop down list?

The other thing I noticed is that when I created a new field within a
table, it does not seem to appear in the field list. Hence when
creating a check box I can't seem to point it to the right control
source.

Any help would be great. Thanks

Srm..

Mar 15 '06 #1
5 2076
Srm,

This is a lot of questions for one post, but...

I would use an option group. What's your reason for wanting to do
something else? Standard practice, the one that everyone's used to
seeing, and will intuitive know how to use, is that, for a group of
options where only one can be selected at a time, you use radio buttons
(the round ones, not check boxes) and put them in an option group frame
so that users will know where the limited options are located, and how
to tell them from the other controls on the form. If you _really_ want
to buck this convention, and are willing to risk confusion on the part
of your users, you could use check boxes in an option group and make
the border of the frame be transparent, or the same color as the
background of your form, if you really wanted.

Jeremy
--
Jeremy Wallace
Fund for the City of New York
http://metrix.fcny.org

Mar 15 '06 #2
OK, on to the next part, changing the rowsource of the combo box
depending on what's selected in your option group <g>...

I would put code in the Enter event of your combo box that does
something like this:
select case me!WhateverYourOptionGroupIsCalled
case 0
me!WhateverYourComboBoxIsCalled.rowsource = "SELECT ..."
case 1
me!WhateverYourComboBoxIsCalled.rowsource = "SELECT ..."
case else
me!WhateverYourComboBoxIsCalled.rowsource = "SELECT ..."
end if

The select statements will pull the data from the tables you have set
up for the combo box.

One additional thought--it's likely that the tables you have to fill
the combo box could be combined to one table, with just a single field
to differentiate the groups of data. This is a cleaner design.You would
then be able to simply change the where clause on the select statement
in each of the cases above.

Jeremy
--
Jeremy Wallace
Fund for the City of New York
http://metrix.fcny.org

Mar 15 '06 #3
Fields not appearing...

Is your form bound directly to the table? It sounds like it's bound to
a query. If that's the case, you'll have to add the fields to the
query, too.

If it's bound to the table, is it possible that you made the changes to
the table while the form was open in design view? If so, close the form
and reopen it and you'll see the new fields.

Jeremy
--
Jeremy Wallace
Fund for the City of New York
http://metrix.fcny.org

Mar 15 '06 #4
Changing the text box to a combo box...

Right click on the text box and there's an option to change it to a
text box!
Jeremy
--
Jeremy Wallace
Fund for the City of New York
http://metrix.fcny.org

Mar 15 '06 #5
Hi Jeremy,

Thank you for your help/advice. I am going to give a try and see what
the outcomes turns out to be.

Shreekant
Jeremy Wallace wrote:
Changing the text box to a combo box...

Right click on the text box and there's an option to change it to a
text box!
Jeremy
--
Jeremy Wallace
Fund for the City of New York
http://metrix.fcny.org


Mar 15 '06 #6

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

Similar topics

2
by: Stephen Miller | last post by:
I have a page with many, dynamically generated combo boxes and I want to check all of them, before I add a unique value to specific combo. What would be the best way to work through the document...
3
by: B | last post by:
I know there are several ways to speed up combo boxes and form loading. Most of the solutions leave rowsource of the combo box blank and set the rowsource to a saved query or an SQL with a where...
3
by: Brian Henry | last post by:
our form, when it is in read only mode has about 10 combo boxes on it, and a bunch of text boxes, now the text box has a read only property which makes the text black, but the combo box doesn't so...
8
by: Jack | last post by:
Hi, I have a asp page where multiple rows for a client is generated using asp. Some of these are combo boxes and some are text and are coming from a recordset. Now, the following is the code to...
0
by: Tom | last post by:
I have some very strange issues with combo boxes on a tab control. Here's the scenario: I have a Windows Forms form that has a tab control on it, with two (2) tabs. Tab 2 happens to have a number...
8
by: AA Arens | last post by:
Hi I do have a products table and products-parts table in my Access 2003 database and log all services into a form. I do have at least the following two combo boxes on my form: - Choose...
2
by: kathat | last post by:
I have a form with a combo box that I want to use for navigating through the records. I have 10 records (for test purposes) in my table (mainly text boxes, but also a check box and an ole object for...
6
by: Dave | last post by:
I want to put the information that the user selects in my combo boxes into a subform that lies on the same form as the combo boxes. Thanks for your help already, Dave
1
by: Dave | last post by:
Hello all, First I'd like to apologize...This post was meant to be put in my previous post, but I tried many times without success to reply within my previous post. Now here goes... I have a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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...

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.