PC Review


Reply
Thread Tools Rate Thread

Displaying Information in one Table based on information in anothe

 
 
Ray C
Guest
Posts: n/a
 
      29th May 2008
I have a Table containing Suppliers Information and the two fields I am
interested in are "SupplierID" and "SupplierName",
I have a Customer Table that contains the "SupplierID".
I have a Form that is based on the Customer Table.
On that form, I can easily pick and display the "SupplierID" because that
info is held in that particular Table.
What I want to do is to display the "SupplierID" from the info held in the
Customer Table but I want to use that ID Number to look up the "SupplierID"
held in the Supplier Table and display "SupplierName" info associated with
that "SupplierID".
I can do this in a Combo Box by setting the "RowSource" but I dont know how
to do it with a Text Box.
Can anyone help Please?
Thanks RayC
 
Reply With Quote
 
 
 
 
Arvin Meyer [MVP]
Guest
Posts: n/a
 
      29th May 2008
As you mentioned, a combo box would be easier, but if you really want to use
a textbox:

Instead of basing your form directly on a table, base it on a query where
the 2 tables are joined on SupplierID. Add the name from the Supplier's
table and display it in the text box.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

"Ray C" <(E-Mail Removed)> wrote in message
news:B9B00BEF-106D-42A0-B345-(E-Mail Removed)...
>I have a Table containing Suppliers Information and the two fields I am
> interested in are "SupplierID" and "SupplierName",
> I have a Customer Table that contains the "SupplierID".
> I have a Form that is based on the Customer Table.
> On that form, I can easily pick and display the "SupplierID" because that
> info is held in that particular Table.
> What I want to do is to display the "SupplierID" from the info held in the
> Customer Table but I want to use that ID Number to look up the
> "SupplierID"
> held in the Supplier Table and display "SupplierName" info associated with
> that "SupplierID".
> I can do this in a Combo Box by setting the "RowSource" but I dont know
> how
> to do it with a Text Box.
> Can anyone help Please?
> Thanks RayC



 
Reply With Quote
 
Ray C
Guest
Posts: n/a
 
      31st May 2008
Great, Thanks Arvin

Ray C

"Arvin Meyer [MVP]" wrote:

> As you mentioned, a combo box would be easier, but if you really want to use
> a textbox:
>
> Instead of basing your form directly on a table, base it on a query where
> the 2 tables are joined on SupplierID. Add the name from the Supplier's
> table and display it in the text box.
> --
> Arvin Meyer, MCP, MVP
> http://www.datastrat.com
> http://www.mvps.org/access
> http://www.accessmvp.com
>
> "Ray C" <(E-Mail Removed)> wrote in message
> news:B9B00BEF-106D-42A0-B345-(E-Mail Removed)...
> >I have a Table containing Suppliers Information and the two fields I am
> > interested in are "SupplierID" and "SupplierName",
> > I have a Customer Table that contains the "SupplierID".
> > I have a Form that is based on the Customer Table.
> > On that form, I can easily pick and display the "SupplierID" because that
> > info is held in that particular Table.
> > What I want to do is to display the "SupplierID" from the info held in the
> > Customer Table but I want to use that ID Number to look up the
> > "SupplierID"
> > held in the Supplier Table and display "SupplierName" info associated with
> > that "SupplierID".
> > I can do this in a Combo Box by setting the "RowSource" but I dont know
> > how
> > to do it with a Text Box.
> > Can anyone help Please?
> > Thanks RayC

>
>
>

 
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
Displaying Information From a Table in a Form =?Utf-8?B?QW1hbmRh?= Microsoft Access 4 22nd Aug 2007 04:42 AM
Displaying column heading information based on a search result. =?Utf-8?B?TWU=?= Microsoft Excel Discussion 2 21st Aug 2007 08:10 PM
Replace information based on existing information brownti via OfficeKB.com Microsoft Excel Programming 0 26th Jul 2007 04:03 PM
Displaying table information on a form =?Utf-8?B?QmVsbGU=?= Microsoft Access 4 10th Jan 2005 05:40 AM
displaying information in a table =?Utf-8?B?Uk1FUkNBRE8yMDc4?= Microsoft Access Getting Started 1 7th Nov 2003 12:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:26 AM.