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

Need help with option group labels and embedding fonts..

I have an option group with about 30 options. I would like to have
the Option Labels get their text from a table. Is this possible, and
if so how?

Also, is it possible to embad a font into a database or does each
machine need to have that font installed?

Thanks for any help,

ShyGuy
Nov 12 '05 #1
7 3261
Sounds Dodgy. If the original option group is for say how do you want your
goods to travel -
1 Road
2 rail
3 Air
4 Sea
and someone changes the table to Air, Road, Sea, Air, you will get the wrong
answer.

Phil

"Shyguy" <Sh****@shytown.com> wrote in message
news:99********************************@4ax.com...
I have an option group with about 30 options. I would like to have
the Option Labels get their text from a table. Is this possible, and
if so how?

Also, is it possible to embad a font into a database or does each
machine need to have that font installed?

Thanks for any help,

ShyGuy

Nov 12 '05 #2
"Phil Stanton" wrote
Sounds Dodgy. . . .
and someone changes the table to Air,
Road, Sea, Air, you will get the wrong
answer.


That would be the Lookup Table for "Ship By" and it should not be available
for just anyone to go in and change, willy-nilly.

In a developed application distributed to users, the users should have
neither direct access to the Table, nor to the Query Builder, nor to a Form
to update that Table. It should also be declared with Referential Integrity
and Cascading Update so that _valid_ updates to the key field by a developer
would be carried forward to related tables (and a developer should know that
you don't change the description of "Road" to "Air" in a lookup table -- if
not, then continuation of employment ought not be an option).

Larry Linson
Microsoft Access MVP
Nov 12 '05 #3
I feel very nervous at arguing with an expert such as yourself Larry, but if
the table isn't going to be changed, why not write the label.Captions
directly

Phil
"Larry Linson" <bo*****@localhost.not> wrote in message
news:R3******************@nwrddc02.gnilink.net...
"Phil Stanton" wrote
> Sounds Dodgy. . . .
> and someone changes the table to Air,
> Road, Sea, Air, you will get the wrong
> answer.
That would be the Lookup Table for "Ship By" and it should not be

available for just anyone to go in and change, willy-nilly.

In a developed application distributed to users, the users should have
neither direct access to the Table, nor to the Query Builder, nor to a Form to update that Table. It should also be declared with Referential Integrity and Cascading Update so that _valid_ updates to the key field by a developer would be carried forward to related tables (and a developer should know that you don't change the description of "Road" to "Air" in a lookup table -- if not, then continuation of employment ought not be an option).

Larry Linson
Microsoft Access MVP

Nov 12 '05 #4
Don't feel nervous about disagreeing with me, Phil -- not only am I not
always right, but I am no longer embarrassed to admit it. Once I had made a
fool of myself in public a certain number of times, it no longer held any
terror for me. <G>

What I was thinking was not that the table will always remain exactly as it
is, but that none of the existing values would be arbitrarily changed.

Assume that it might be more complex than "Truck", "Rail", "Ship", and
"Air" -- perhaps there might be several entries for truck shipment via
different companies. If all the shipments via "RoadHog Freight Lines" were
to be reassigned to "RedDirt Hauling Co" because RoadHog went bankrupt and
the two firms served the same region, it might be changed; if
"FasterFreight" qualified as a new trucking firm to be used, it might be
added. If "BentWings Air" went out of business, that number might be reused
for a different air carrier, or just left unused. It's all a matter of good
business judgement as to which changes would be appropriate -- that's the
reason that not just any user could be allowed to modify it.

If indeed it were only "Road", "Rail", "Ship", and "Air" and there wasn't
going to be a change until it became practical to ship via "Orbital Rocket",
you're right, there wouldn't be an advantage (generally speaking) to using a
table instead of hard coding the labels, unless the table had other uses as
well.

I suppose I could also imagine a "generic form" that could be adapted to
multiple uses by simply changing the tables that it used.

I rarely do that kind of thing, on the basis that "simpler is better" for
the kind of work I do (contract work that may have to be maintained by
someone else). It has surely cost some customers a lot of extra expense
because a developer got carried away and tried to make one "self-modifying"
object do when it would have been better to have several simpler ones, each
trivially simple to maintain. I have, I sadly report, been the person who
had to spend extra time to figure out a few complex self-modifying objects
before a simple change could be implemented.

Larry

"Phil Stanton" <ph**@stantonfamily.co.uk> wrote in message
news:3f*********************@mercury.nildram.net.. .
I feel very nervous at arguing with an expert such as yourself Larry, but if the table isn't going to be changed, why not write the label.Captions
directly

Phil
"Larry Linson" <bo*****@localhost.not> wrote in message
news:R3******************@nwrddc02.gnilink.net...
"Phil Stanton" wrote
> Sounds Dodgy. . . .
> and someone changes the table to Air,
> Road, Sea, Air, you will get the wrong
> answer.


That would be the Lookup Table for "Ship By" and it should not be

available
for just anyone to go in and change, willy-nilly.

In a developed application distributed to users, the users should have
neither direct access to the Table, nor to the Query Builder, nor to a

Form
to update that Table. It should also be declared with Referential

Integrity
and Cascading Update so that _valid_ updates to the key field by a

developer
would be carried forward to related tables (and a developer should know

that
you don't change the description of "Road" to "Air" in a lookup table --

if
not, then continuation of employment ought not be an option).

Larry Linson
Microsoft Access MVP


Nov 12 '05 #5
Well, I certainly stirred up a discussion with my question.

I don't want the end users to change the table. I have different
users who need different options available in the option group.

What I wind up doing is changing them directly and it's a real pain,
since some overlap others, etc.

I know it's messy, but I'm not a pro and the end users are happy with
it.

So, is it possible to have the option labels get their caption from a
table?
Also, is it possible to embed a font into a database or does each
machine need to have that font installed?
Thanks for any help,

Shyguy
Nov 12 '05 #6
Shyguy <Sh****@shytown.com> wrote in
news:mk********************************@4ax.com:
Well, I certainly stirred up a discussion with my question.

I don't want the end users to change the table. I have
different users who need different options available in the
option group.

What I wind up doing is changing them directly and it's a real
pain, since some overlap others, etc.

I know it's messy, but I'm not a pro and the end users are
happy with it.

So, is it possible to have the option labels get their
caption from a table?
You could get option labels from a table with a little bit of code
in the form's Open event. You would need the following fields in
the table: OptionGroup, labelname, labeltext, and some sort of ID
field to differentiate between the different user groups.

When the form opens, you need to establish which user group has
opened the form, then create a recordset filtered for the user
group, read each record and update the label's caption property.

It's probably more work than it's worth. Have you considered just
changing the label captions from code and storing the captions as
strings in the code?

something like:
select case usergroup
case usergroup = 1
me.label1.caption = "User 1 string 1"
me.label3.caption = "User 1 caption 2"
me.label5.caption = "User 1 text 3"
case usergroup = 2
me.label1.caption = "User 2 string 1"
me.label3.caption = "User 2 caption 2"
me.label5.caption = "user 2 something 999"
end select

Also, is it possible to embed a font into a database or does
each machine need to have that font installed?
AFAIK, you have to install the fonts.

Thanks for any help,

Shyguy


Nov 12 '05 #7
Thank you so much. Actually the code is even better for me.

Thnak you,

Shyguy
Nov 12 '05 #8

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

Similar topics

2
by: Shock | last post by:
Does anybody know of a way to make the Routers label the default value instead of the value at index 0? Using javascript or basic xhtml? Here is the code. <select name = "product"> <optgroup...
2
by: qumpus | last post by:
My program right now generates USPS style shipping label using System.Drawing.Graphics. It works fine except that the printer prints really slowly. I want to make my program take advantage of true...
5
by: Adam Smith | last post by:
Hello, How can I embed fonts in my web pages such that the pages have a uniform appearance across all browsers (Netscape, IE & Opera), across all platforms, IRIX, Win 2K, SP etc. whether or not...
3
by: goma | last post by:
i have got a table of fields ID, study group, gender and height in meters, and have got 9.99 in the height field as don't know option. I want to create a query that calculates mean standard...
2
by: Shyguy | last post by:
I have an option group with about 30 options. I would like to have the Option Labels get their text from a table. Is this possible, and if so how? Also, is it possible to embad a font into a...
1
by: Richard Hollenbeck | last post by:
Hello Newsgroup. You have all been very helpful in the past and I thank you. I try to ask relevant questions so that they don't just benefit me, but also benefit the group. I'm currently...
4
by: Dinesh Jain | last post by:
Hi all, I am dealing with a serious problem with an application which displays texts of all the labels perfectly under the setting 96 DPI (from control panel) but doesn't displays labels...
9
by: Bob Malcoprs | last post by:
Hi, I want to get all the selected values of a listbox in several labels.. With this code here below, when i click on e.g. "option 2", i get '2' in label2. That's ok. But if i then click on...
0
by: marcell71 | last post by:
I'm trying to get Boost.Python to working using the instructions here: http://www.boost.org/libs/python/doc/building.html. I am on step 3.1.4 and am getting a linking error that I can't figure out....
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:
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
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...

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.