473,394 Members | 1,773 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.

Comb box default value column heaing?

I have a combo box set up off a query. I want the default value to be
the column heading so I don't have to put a label over it. So far I
haven't been able to figure this out. Can anyone tell me if this is
possible... and if so..how?

Thanks!

Jan 21 '07 #1
4 2316
Baz
Ugh, you want an Access combo box to behave as though it were on a smelly
HTML form!

I guess you could leave the combo box unbound and use code in the form's
BeforeUpdate even to grab it's value (assuming it's not the default), if you
really must. But, if the combo is bound, there's no way to get a value to
display unless the value is in the RowSource. You might be able to contrive
something with a text box carefully positioned over the combo box with event
code switching the focus when necessary, but really, it's not worth the
effort.

"Torilyn73" <to*******@gmail.comwrote in message
news:11**********************@v45g2000cwv.googlegr oups.com...
I have a combo box set up off a query. I want the default value to be
the column heading so I don't have to put a label over it. So far I
haven't been able to figure this out. Can anyone tell me if this is
possible... and if so..how?

Thanks!

Jan 21 '07 #2
It it's reallly complicated.. then forget it. Let me explain a little
what I'm doing here.

I have a database set up with about 200 common responses that I (and my
coworkers) use in replying to customers via email. It's technical
support for a computer company. I'm hoping this thing will help us work
smarter, not harder! Anyway.. my table has about 67 different
categories (headings), They are yes/no fields. Each common response is
assigned to at least one. I created a query for each catergory and now
need to create the main form to view these common responses. It needs
one large text box to display the common response and then a combo box
for each category that will show the list of what is assigned to that
category, when the record is selected... the text of the common
response is in the txt box. I have this set up already. My problem is I
don't have room for all these combo boxes and their labels. If I can
simplify the look with each combo box showing the column heading
(category name) as the default, then I can lose the labels off the
form. I was hoping there was just some trick to doing this.

What if I just create a multiple records each titled by a different
category and then assigned to their respective categories. That should
work, and I will end up with 67 records that are nothing but a name...
but thats ok. I'm going to try that and see what happens.

If anyone has other ideas... I am all ears.... er... eyes!! hehe
Baz wrote:
Ugh, you want an Access combo box to behave as though it were on a smelly
HTML form!

I guess you could leave the combo box unbound and use code in the form's
BeforeUpdate even to grab it's value (assuming it's not the default), if you
really must. But, if the combo is bound, there's no way to get a value to
display unless the value is in the RowSource. You might be able to contrive
something with a text box carefully positioned over the combo box with event
code switching the focus when necessary, but really, it's not worth the
effort.

"Torilyn73" <to*******@gmail.comwrote in message
news:11**********************@v45g2000cwv.googlegr oups.com...
I have a combo box set up off a query. I want the default value to be
the column heading so I don't have to put a label over it. So far I
haven't been able to figure this out. Can anyone tell me if this is
possible... and if so..how?

Thanks!
Jan 21 '07 #3
Baz
From that description it sounds to me as though your combo boxes may not be
bound, in which case just set the "Default Value" property to your desired
title.

It's rarely good user interface design to cram as much as possible onto a
form, which is what you have done if you don't even have room for labels.
Even if you do succeed in gettting all your controls on the one form, some
user is sure to undo your hard work by insisting on using a chunkier screen
resolution than you designed the form for.
"Torilyn73" <to*******@gmail.comwrote in message
news:11**********************@v45g2000cwv.googlegr oups.com...
It it's reallly complicated.. then forget it. Let me explain a little
what I'm doing here.

I have a database set up with about 200 common responses that I (and my
coworkers) use in replying to customers via email. It's technical
support for a computer company. I'm hoping this thing will help us work
smarter, not harder! Anyway.. my table has about 67 different
categories (headings), They are yes/no fields. Each common response is
assigned to at least one. I created a query for each catergory and now
need to create the main form to view these common responses. It needs
one large text box to display the common response and then a combo box
for each category that will show the list of what is assigned to that
category, when the record is selected... the text of the common
response is in the txt box. I have this set up already. My problem is I
don't have room for all these combo boxes and their labels. If I can
simplify the look with each combo box showing the column heading
(category name) as the default, then I can lose the labels off the
form. I was hoping there was just some trick to doing this.

What if I just create a multiple records each titled by a different
category and then assigned to their respective categories. That should
work, and I will end up with 67 records that are nothing but a name...
but thats ok. I'm going to try that and see what happens.

If anyone has other ideas... I am all ears.... er... eyes!! hehe
Baz wrote:
Ugh, you want an Access combo box to behave as though it were on a
smelly
HTML form!

I guess you could leave the combo box unbound and use code in the form's
BeforeUpdate even to grab it's value (assuming it's not the default), if
you
really must. But, if the combo is bound, there's no way to get a value
to
display unless the value is in the RowSource. You might be able to
contrive
something with a text box carefully positioned over the combo box with
event
code switching the focus when necessary, but really, it's not worth the
effort.

"Torilyn73" <to*******@gmail.comwrote in message
news:11**********************@v45g2000cwv.googlegr oups.com...
I have a combo box set up off a query. I want the default value to be
the column heading so I don't have to put a label over it. So far I
haven't been able to figure this out. Can anyone tell me if this is
possible... and if so..how?
>
Thanks!
>

Jan 22 '07 #4
I agree about the user interface being too cluttered however, we only
have about 7 people who will use it. At the moment the solution we have
requires a lot of scrolling and clicking on different links to get to
the page you need and then when done you have to back track to the home
page.

I may end up chucking this idea and coming up with something else...
who knows.
Baz wrote:
From that description it sounds to me as though your combo boxes may not be
bound, in which case just set the "Default Value" property to your desired
title.

It's rarely good user interface design to cram as much as possible onto a
form, which is what you have done if you don't even have room for labels.
Even if you do succeed in gettting all your controls on the one form, some
user is sure to undo your hard work by insisting on using a chunkier screen
resolution than you designed the form for.
"Torilyn73" <to*******@gmail.comwrote in message
news:11**********************@v45g2000cwv.googlegr oups.com...
It it's reallly complicated.. then forget it. Let me explain a little
what I'm doing here.

I have a database set up with about 200 common responses that I (and my
coworkers) use in replying to customers via email. It's technical
support for a computer company. I'm hoping this thing will help us work
smarter, not harder! Anyway.. my table has about 67 different
categories (headings), They are yes/no fields. Each common response is
assigned to at least one. I created a query for each catergory and now
need to create the main form to view these common responses. It needs
one large text box to display the common response and then a combo box
for each category that will show the list of what is assigned to that
category, when the record is selected... the text of the common
response is in the txt box. I have this set up already. My problem is I
don't have room for all these combo boxes and their labels. If I can
simplify the look with each combo box showing the column heading
(category name) as the default, then I can lose the labels off the
form. I was hoping there was just some trick to doing this.

What if I just create a multiple records each titled by a different
category and then assigned to their respective categories. That should
work, and I will end up with 67 records that are nothing but a name...
but thats ok. I'm going to try that and see what happens.

If anyone has other ideas... I am all ears.... er... eyes!! hehe
Baz wrote:
Ugh, you want an Access combo box to behave as though it were on a
smelly
HTML form!
>
I guess you could leave the combo box unbound and use code in the form's
BeforeUpdate even to grab it's value (assuming it's not the default), if
you
really must. But, if the combo is bound, there's no way to get a value
to
display unless the value is in the RowSource. You might be able to
contrive
something with a text box carefully positioned over the combo box with
event
code switching the focus when necessary, but really, it's not worth the
effort.
>
"Torilyn73" <to*******@gmail.comwrote in message
news:11**********************@v45g2000cwv.googlegr oups.com...
I have a combo box set up off a query. I want the default value to be
the column heading so I don't have to put a label over it. So far I
haven't been able to figure this out. Can anyone tell me if this is
possible... and if so..how?

Thanks!
Jan 22 '07 #5

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

Similar topics

1
by: Programmer | last post by:
Hi All Here is my problem I'm using a SQLDataAdapter and DataSet I use the method FillSchema(myDataset, SchemaType.Source) The problem is that when i Check the default Values of the Dataset...
2
by: Mr Man | last post by:
Is it possible to set the combo-box drop down list default to zero or blank. Sometimes when you first view it, or not selected any data the box has a selection in it, so you're not sure whether...
4
by: Brian Brane | last post by:
I have properties that wrap DataRow columns as in: public int aNumber { get{ return m_DataRow; } set{ m_DataRow = value; } } If the column happens to contain DBNull, I get a cast exception...
30
by: Bruce Momjian | last post by:
I have events in the next few weeks in New York City, Copenhagen, Paris, and Atlanta. Check the News section on the web site for more information. I will also be in Amsterdam February 2-3, though...
5
by: HandersonVA | last post by:
should I set to "0" as a default value on a quantity and a price field or set to "null"? if a user enter nothing on the quantity or price field on a web browser, should I treat it as null or "0"?...
3
by: binder | last post by:
I am designing a new table with a few columns that may or may not have a value on each row that is inserted. What issues determine whether to allow a NULL value to be inserted for that column or...
4
by: Doogie | last post by:
I posted this question a few days ago but I think that post is drying up and I still do not have an answer. I need to set a default option for a combo box that is not the first item in that combo...
1
by: grahamlabdon | last post by:
Hi Everyone I have a group box that contains 2 labels and 2 combo boxes I have a DataView object that I want to set as the data source for the combo boxes In addition I want to add a data...
11
by: Dominic Vella | last post by:
I am using MS-Access2000. I can't seem to set the default values for Logical type fields. I start with Dim dbsTmp As Object ' I think it's DAO.Database Set dbsTmp =...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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?
0
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...
0
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,...
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...

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.