PC Review


Reply
Thread Tools Rate Thread

Combo Box with related Fields showing on top

 
 
=?Utf-8?B?TmV3Ynk=?=
Guest
Posts: n/a
 
      8th Sep 2006
I know this has been discussed before but it's hard to find.

my combo box in a sub form selects a numerical value stored as the ItemID
but I have to use a related "name" field to cover that combo box so it is
identifiable to the user. I have multible: Name, Company, Phone, Fax that I
need to show

How do I get those to stand out 1) after the combo box selection and 2) when
the form opens?
--
Chris Hayes
Newby
 
Reply With Quote
 
 
 
 
Jeff Boyce
Guest
Posts: n/a
 
      8th Sep 2006
Chris

I don't understand what you mean by "a related name field to cover that
combo box".

Are you saying you have a combo box AND a text box? If so, you (and Access)
are working harder than you need to.

A combo box allows for multiple fields to be displayed while it it dropped
down. This makes it easier to identify the correct row/record. A combo box
also allows one field to be stored and another to be displayed. This is
done by setting the width of the "bound" field to 0 ... and is usually done
by making the ID field the first field in the combo box's underlying query,
then setting the width to 0.

Or am I missing something?

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Newby" <hayes.cs(remove this)@gmail.com> wrote in message
news:3DED0562-2E1B-44FD-9529-(E-Mail Removed)...
>I know this has been discussed before but it's hard to find.
>
> my combo box in a sub form selects a numerical value stored as the ItemID
> but I have to use a related "name" field to cover that combo box so it is
> identifiable to the user. I have multible: Name, Company, Phone, Fax
> that I
> need to show
>
> How do I get those to stand out 1) after the combo box selection and 2)
> when
> the form opens?
> --
> Chris Hayes
> Newby



 
Reply With Quote
 
=?Utf-8?B?TmV3Ynk=?=
Guest
Posts: n/a
 
      8th Sep 2006
I make this more complicated than I need but it's fun.

1) There are three main items: A. Jobs B. Contacts C. Notes

2) Jobs are related to multiple Notes.

3) Multiple Jobs are related to multiple Contacts. To solve this I use an
intermediate table called "Contact Relations" i.e. RelationID, ContactID, and
JobID.

4) The only field that shows when I select a contact is "ContactID" from the
"Contact Relations" table. The Form source is a query that incorporates both
the "Contact Relations" table and the "Contacts" table the Name, Phone etc.
To cause these to show on the combo box I have to place that field from the
query over top the combo box.

Now the question. When I make a selection from the combo box OR when I open
the form, the first record does not show the the "overlayed" fields. How do
I get those fields to show in both cases (i.e. 1) upon opening the form and
2) upon selection)?
--
Chris Hayes
Newby


"Jeff Boyce" wrote:

> Chris
>
> I don't understand what you mean by "a related name field to cover that
> combo box".
>
> Are you saying you have a combo box AND a text box? If so, you (and Access)
> are working harder than you need to.
>
> A combo box allows for multiple fields to be displayed while it it dropped
> down. This makes it easier to identify the correct row/record. A combo box
> also allows one field to be stored and another to be displayed. This is
> done by setting the width of the "bound" field to 0 ... and is usually done
> by making the ID field the first field in the combo box's underlying query,
> then setting the width to 0.
>
> Or am I missing something?
>
> Regards
>
> Jeff Boyce
> Microsoft Office/Access MVP
>
> "Newby" <hayes.cs(remove this)@gmail.com> wrote in message
> news:3DED0562-2E1B-44FD-9529-(E-Mail Removed)...
> >I know this has been discussed before but it's hard to find.
> >
> > my combo box in a sub form selects a numerical value stored as the ItemID
> > but I have to use a related "name" field to cover that combo box so it is
> > identifiable to the user. I have multible: Name, Company, Phone, Fax
> > that I
> > need to show
> >
> > How do I get those to stand out 1) after the combo box selection and 2)
> > when
> > the form opens?
> > --
> > Chris Hayes
> > Newby

>
>
>

 
Reply With Quote
 
Jeff Boyce
Guest
Posts: n/a
 
      8th Sep 2006
I still don't follow the "overlay field".

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Newby" <hayes.cs(remove this)@gmail.com> wrote in message
news:A382DA3E-8188-4582-8C9D-(E-Mail Removed)...
>I make this more complicated than I need but it's fun.
>
> 1) There are three main items: A. Jobs B. Contacts C. Notes
>
> 2) Jobs are related to multiple Notes.
>
> 3) Multiple Jobs are related to multiple Contacts. To solve this I use an
> intermediate table called "Contact Relations" i.e. RelationID, ContactID,
> and
> JobID.
>
> 4) The only field that shows when I select a contact is "ContactID" from
> the
> "Contact Relations" table. The Form source is a query that incorporates
> both
> the "Contact Relations" table and the "Contacts" table the Name, Phone
> etc.
> To cause these to show on the combo box I have to place that field from
> the
> query over top the combo box.
>
> Now the question. When I make a selection from the combo box OR when I
> open
> the form, the first record does not show the the "overlayed" fields. How
> do
> I get those fields to show in both cases (i.e. 1) upon opening the form
> and
> 2) upon selection)?
> --
> Chris Hayes
> Newby
>
>
> "Jeff Boyce" wrote:
>
>> Chris
>>
>> I don't understand what you mean by "a related name field to cover that
>> combo box".
>>
>> Are you saying you have a combo box AND a text box? If so, you (and
>> Access)
>> are working harder than you need to.
>>
>> A combo box allows for multiple fields to be displayed while it it
>> dropped
>> down. This makes it easier to identify the correct row/record. A combo
>> box
>> also allows one field to be stored and another to be displayed. This is
>> done by setting the width of the "bound" field to 0 ... and is usually
>> done
>> by making the ID field the first field in the combo box's underlying
>> query,
>> then setting the width to 0.
>>
>> Or am I missing something?
>>
>> Regards
>>
>> Jeff Boyce
>> Microsoft Office/Access MVP
>>
>> "Newby" <hayes.cs(remove this)@gmail.com> wrote in message
>> news:3DED0562-2E1B-44FD-9529-(E-Mail Removed)...
>> >I know this has been discussed before but it's hard to find.
>> >
>> > my combo box in a sub form selects a numerical value stored as the
>> > ItemID
>> > but I have to use a related "name" field to cover that combo box so it
>> > is
>> > identifiable to the user. I have multible: Name, Company, Phone, Fax
>> > that I
>> > need to show
>> >
>> > How do I get those to stand out 1) after the combo box selection and 2)
>> > when
>> > the form opens?
>> > --
>> > Chris Hayes
>> > Newby

>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?Q1MgSGF5ZXM=?=
Guest
Posts: n/a
 
      11th Sep 2006
If I could email you a print screen would that help?
--
Chris Hayes
Still a beginner


"Jeff Boyce" wrote:

> I still don't follow the "overlay field".
>
> Regards
>
> Jeff Boyce
> Microsoft Office/Access MVP
>
> "Newby" <hayes.cs(remove this)@gmail.com> wrote in message
> news:A382DA3E-8188-4582-8C9D-(E-Mail Removed)...
> >I make this more complicated than I need but it's fun.
> >
> > 1) There are three main items: A. Jobs B. Contacts C. Notes
> >
> > 2) Jobs are related to multiple Notes.
> >
> > 3) Multiple Jobs are related to multiple Contacts. To solve this I use an
> > intermediate table called "Contact Relations" i.e. RelationID, ContactID,
> > and
> > JobID.
> >
> > 4) The only field that shows when I select a contact is "ContactID" from
> > the
> > "Contact Relations" table. The Form source is a query that incorporates
> > both
> > the "Contact Relations" table and the "Contacts" table the Name, Phone
> > etc.
> > To cause these to show on the combo box I have to place that field from
> > the
> > query over top the combo box.
> >
> > Now the question. When I make a selection from the combo box OR when I
> > open
> > the form, the first record does not show the the "overlayed" fields. How
> > do
> > I get those fields to show in both cases (i.e. 1) upon opening the form
> > and
> > 2) upon selection)?
> > --
> > Chris Hayes
> > Newby
> >
> >
> > "Jeff Boyce" wrote:
> >
> >> Chris
> >>
> >> I don't understand what you mean by "a related name field to cover that
> >> combo box".
> >>
> >> Are you saying you have a combo box AND a text box? If so, you (and
> >> Access)
> >> are working harder than you need to.
> >>
> >> A combo box allows for multiple fields to be displayed while it it
> >> dropped
> >> down. This makes it easier to identify the correct row/record. A combo
> >> box
> >> also allows one field to be stored and another to be displayed. This is
> >> done by setting the width of the "bound" field to 0 ... and is usually
> >> done
> >> by making the ID field the first field in the combo box's underlying
> >> query,
> >> then setting the width to 0.
> >>
> >> Or am I missing something?
> >>
> >> Regards
> >>
> >> Jeff Boyce
> >> Microsoft Office/Access MVP
> >>
> >> "Newby" <hayes.cs(remove this)@gmail.com> wrote in message
> >> news:3DED0562-2E1B-44FD-9529-(E-Mail Removed)...
> >> >I know this has been discussed before but it's hard to find.
> >> >
> >> > my combo box in a sub form selects a numerical value stored as the
> >> > ItemID
> >> > but I have to use a related "name" field to cover that combo box so it
> >> > is
> >> > identifiable to the user. I have multible: Name, Company, Phone, Fax
> >> > that I
> >> > need to show
> >> >
> >> > How do I get those to stand out 1) after the combo box selection and 2)
> >> > when
> >> > the form opens?
> >> > --
> >> > Chris Hayes
> >> > Newby
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
=?Utf-8?B?Q1MgSGF5ZXM=?=
Guest
Posts: n/a
 
      11th Sep 2006
I figured it out. In the "onload" event I have a macro that goes to a new
record. Problem solved.
--
Chris Hayes
Still a beginner


"CS Hayes" wrote:

> If I could email you a print screen would that help?
> --
> Chris Hayes
> Still a beginner
>
>
> "Jeff Boyce" wrote:
>
> > I still don't follow the "overlay field".
> >
> > Regards
> >
> > Jeff Boyce
> > Microsoft Office/Access MVP
> >
> > "Newby" <hayes.cs(remove this)@gmail.com> wrote in message
> > news:A382DA3E-8188-4582-8C9D-(E-Mail Removed)...
> > >I make this more complicated than I need but it's fun.
> > >
> > > 1) There are three main items: A. Jobs B. Contacts C. Notes
> > >
> > > 2) Jobs are related to multiple Notes.
> > >
> > > 3) Multiple Jobs are related to multiple Contacts. To solve this I use an
> > > intermediate table called "Contact Relations" i.e. RelationID, ContactID,
> > > and
> > > JobID.
> > >
> > > 4) The only field that shows when I select a contact is "ContactID" from
> > > the
> > > "Contact Relations" table. The Form source is a query that incorporates
> > > both
> > > the "Contact Relations" table and the "Contacts" table the Name, Phone
> > > etc.
> > > To cause these to show on the combo box I have to place that field from
> > > the
> > > query over top the combo box.
> > >
> > > Now the question. When I make a selection from the combo box OR when I
> > > open
> > > the form, the first record does not show the the "overlayed" fields. How
> > > do
> > > I get those fields to show in both cases (i.e. 1) upon opening the form
> > > and
> > > 2) upon selection)?
> > > --
> > > Chris Hayes
> > > Newby
> > >
> > >
> > > "Jeff Boyce" wrote:
> > >
> > >> Chris
> > >>
> > >> I don't understand what you mean by "a related name field to cover that
> > >> combo box".
> > >>
> > >> Are you saying you have a combo box AND a text box? If so, you (and
> > >> Access)
> > >> are working harder than you need to.
> > >>
> > >> A combo box allows for multiple fields to be displayed while it it
> > >> dropped
> > >> down. This makes it easier to identify the correct row/record. A combo
> > >> box
> > >> also allows one field to be stored and another to be displayed. This is
> > >> done by setting the width of the "bound" field to 0 ... and is usually
> > >> done
> > >> by making the ID field the first field in the combo box's underlying
> > >> query,
> > >> then setting the width to 0.
> > >>
> > >> Or am I missing something?
> > >>
> > >> Regards
> > >>
> > >> Jeff Boyce
> > >> Microsoft Office/Access MVP
> > >>
> > >> "Newby" <hayes.cs(remove this)@gmail.com> wrote in message
> > >> news:3DED0562-2E1B-44FD-9529-(E-Mail Removed)...
> > >> >I know this has been discussed before but it's hard to find.
> > >> >
> > >> > my combo box in a sub form selects a numerical value stored as the
> > >> > ItemID
> > >> > but I have to use a related "name" field to cover that combo box so it
> > >> > is
> > >> > identifiable to the user. I have multible: Name, Company, Phone, Fax
> > >> > that I
> > >> > need to show
> > >> >
> > >> > How do I get those to stand out 1) after the combo box selection and 2)
> > >> > when
> > >> > the form opens?
> > >> > --
> > >> > Chris Hayes
> > >> > Newby
> > >>
> > >>
> > >>

> >
> >
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combo box not showing all fields =?Utf-8?B?ZGF3bmVjaWE=?= Microsoft Access Forms 2 10th Oct 2007 09:23 PM
Selection from combo box will fill related fields in text box =?Utf-8?B?U2FtbXk=?= Microsoft Access Forms 1 8th Feb 2007 05:14 PM
multiple fields from a combo box in a single field in related tabl =?Utf-8?B?SG9uZG82NGQ=?= Microsoft Access Getting Started 2 8th Jul 2004 11:50 PM
Combo box with both fields showing MikeA Microsoft Access Forms 2 3rd Oct 2003 05:12 AM
Re: multiple combo boxes with three related fields John Vinson Microsoft Access Forms 0 23rd Jul 2003 07:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:49 PM.