Default value and font colours?

  • Thread starter Thread starter evilcowstare via AccessMonster.com
  • Start date Start date
E

evilcowstare via AccessMonster.com

Hi, this is probably something really simple.
I have a drop-down box that gets its selections from a table, all I want to
do is set it up so that it automatically comes up with one of the items like
a default value unless someone wants to change it,
I had a look at the default value option in properties but cant work out how
to direct it to an actual entry in a table?

Also if you have a combo box that shows selections is it possible to make
just one of the selections a different colour font from the others?

Thank You for all your help!

Jay
 
All you have to do is type the value that you want to be the default value,
you dont need to look it up. If you want your default value to be water just
type "water". Make sure that if the table is related that water is one of
the values in the related table. I don't know of any way to change the color
of the font on any drop down values, let alone just one. Hope that helps.
 
I tried that but it doesnt work, it just displays 0
The combo looks up info from the table below
In the table i have
ID
1 Not Invoiced
2 Invoiced
3 See Notes
4 Valuation

If I put Not Invoiced into default value it puts a 0 in the combo and when i
go back to properties it has changed it to.... Not "Invoiced"

There are 2 column counts and it is bound to column 2, with the 1st column
(id) being invisible

Any Ideas?
All you have to do is type the value that you want to be the default value,
you dont need to look it up. If you want your default value to be water just
type "water". Make sure that if the table is related that water is one of
the values in the related table. I don't know of any way to change the color
of the font on any drop down values, let alone just one. Hope that helps.
Hi, this is probably something really simple.
I have a drop-down box that gets its selections from a table, all I want to
[quoted text clipped - 9 lines]
 
Bound column is normally the ID, which is 1. if you put the default
property = to the ID number, then the name will show up in the column.

Damon

evilcowstare via AccessMonster.com said:
I tried that but it doesnt work, it just displays 0
The combo looks up info from the table below
In the table i have
ID
1 Not Invoiced
2 Invoiced
3 See Notes
4 Valuation

If I put Not Invoiced into default value it puts a 0 in the combo and when
i
go back to properties it has changed it to.... Not "Invoiced"

There are 2 column counts and it is bound to column 2, with the 1st column
(id) being invisible

Any Ideas?
All you have to do is type the value that you want to be the default
value,
you dont need to look it up. If you want your default value to be water
just
type "water". Make sure that if the table is related that water is one of
the values in the related table. I don't know of any way to change the
color
of the font on any drop down values, let alone just one. Hope that helps.
Hi, this is probably something really simple.
I have a drop-down box that gets its selections from a table, all I want
to
[quoted text clipped - 9 lines]
 
There are two ways to fix this problem. The first would be to remove the ID
field and just leave the named fields and make your default value Not
Invoiced. Your other option is to go to the table you want your values
stored in, then go to the field that you want your combo box based on, click
the lookup tab and set it up like this,

Display Control: Combo Box
Row Source Type: Table/Query
Row Source: (Your Table/Query)
Bound Colum: 1 (assuming your ID field is your Primary Key)
Column Count: 2
Column Heads: No
Column Widths: 0,1
List Rows: 8
List Width: Auto
Limit To List: Yes

Then go to the general tab and make the default value 1, which is your ID
for Not Invoiced. Once you create a form base on this table your Not
Invoiced will be the value already entered and if you wish to change it you
will have a drop down of your other choices. Good luck.

evilcowstare via AccessMonster.com said:
I tried that but it doesnt work, it just displays 0
The combo looks up info from the table below
In the table i have
ID
1 Not Invoiced
2 Invoiced
3 See Notes
4 Valuation

If I put Not Invoiced into default value it puts a 0 in the combo and when i
go back to properties it has changed it to.... Not "Invoiced"

There are 2 column counts and it is bound to column 2, with the 1st column
(id) being invisible

Any Ideas?
All you have to do is type the value that you want to be the default value,
you dont need to look it up. If you want your default value to be water just
type "water". Make sure that if the table is related that water is one of
the values in the related table. I don't know of any way to change the color
of the font on any drop down values, let alone just one. Hope that helps.
Hi, this is probably something really simple.
I have a drop-down box that gets its selections from a table, all I want to
[quoted text clipped - 9 lines]
 
Hi, just want to thank both of you for your help, I'll have a play about and
I think based on what is written I'll be able to work something out!

Thanks Again!!!!
All the best
Jay
There are two ways to fix this problem. The first would be to remove the ID
field and just leave the named fields and make your default value Not
Invoiced. Your other option is to go to the table you want your values
stored in, then go to the field that you want your combo box based on, click
the lookup tab and set it up like this,

Display Control: Combo Box
Row Source Type: Table/Query
Row Source: (Your Table/Query)
Bound Colum: 1 (assuming your ID field is your Primary Key)
Column Count: 2
Column Heads: No
Column Widths: 0,1
List Rows: 8
List Width: Auto
Limit To List: Yes

Then go to the general tab and make the default value 1, which is your ID
for Not Invoiced. Once you create a form base on this table your Not
Invoiced will be the value already entered and if you wish to change it you
will have a drop down of your other choices. Good luck.
I tried that but it doesnt work, it just displays 0
The combo looks up info from the table below
[quoted text clipped - 24 lines]
 
Hi Just thought you may want to know I managed to fix the problem, I just had
to put speech marks around whatever I wanted to show in Default Value, so
"Not Invoiced" , Something to remember for the future!

Thanks again for your help!!


Hi, just want to thank both of you for your help, I'll have a play about and
I think based on what is written I'll be able to work something out!

Thanks Again!!!!
All the best
Jay
There are two ways to fix this problem. The first would be to remove the ID
field and just leave the named fields and make your default value Not
[quoted text clipped - 23 lines]
 
Back
Top