PC Review


Reply
Thread Tools Rate Thread

auto fill data from a table

 
 
nyyanx18
Guest
Posts: n/a
 
      7th Nov 2008
I am trying to create a database for violations of inspected facilities. I
have a list of the names of the facilities and addresses. I want to create a
form for each violation (there are several at each facility) for data
entry--select facility name from a drop down. How can I get the address of
that facility (as well as other information contained in that table) to
automatically display when I select that facility.
For example:
A violation has been detected at building A. I need to enter the data about
this violation. I want to select "Building A" from a drop down, and then
below it, the address, etc. is automatically displayed. In another box, i
type in the information...
 
Reply With Quote
 
 
 
 
Golfinray
Guest
Posts: n/a
 
      7th Nov 2008
Put a combo box on your from. Let the wizard do it for you and select
building name as the field. Then right click on the combo to get to
properties, click on events, then afterupdate. Go out to the right and click
on the little button. Choose code builder and type:
Me.filter = "[buildingname] = """ & me.combo# & """"
Me.filteron = true
The combo# will be listed, like combo10 or combo2

"nyyanx18" wrote:

> I am trying to create a database for violations of inspected facilities. I
> have a list of the names of the facilities and addresses. I want to create a
> form for each violation (there are several at each facility) for data
> entry--select facility name from a drop down. How can I get the address of
> that facility (as well as other information contained in that table) to
> automatically display when I select that facility.
> For example:
> A violation has been detected at building A. I need to enter the data about
> this violation. I want to select "Building A" from a drop down, and then
> below it, the address, etc. is automatically displayed. In another box, i
> type in the information...

 
Reply With Quote
 
nyyanx18
Guest
Posts: n/a
 
      10th Nov 2008
I tried this and it did not work. I forgot to mention that I am new to
access and only have figured out the basics. Let me try to explain a little
better what i need. I have a table- 1 column has building name, another
column has address. I made a query of these two. I want to select building
name from a drop down and have the corresponding address show up below it.


Thanks

"Golfinray" wrote:

> Put a combo box on your from. Let the wizard do it for you and select
> building name as the field. Then right click on the combo to get to
> properties, click on events, then afterupdate. Go out to the right and click
> on the little button. Choose code builder and type:
> Me.filter = "[buildingname] = """ & me.combo# & """"
> Me.filteron = true
> The combo# will be listed, like combo10 or combo2
>
> "nyyanx18" wrote:
>
> > I am trying to create a database for violations of inspected facilities. I
> > have a list of the names of the facilities and addresses. I want to create a
> > form for each violation (there are several at each facility) for data
> > entry--select facility name from a drop down. How can I get the address of
> > that facility (as well as other information contained in that table) to
> > automatically display when I select that facility.
> > For example:
> > A violation has been detected at building A. I need to enter the data about
> > this violation. I want to select "Building A" from a drop down, and then
> > below it, the address, etc. is automatically displayed. In another box, i
> > type in the information...

 
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
Auto-fill data in Table Nora Microsoft Access Getting Started 2 5th Feb 2009 06:25 PM
Using auto-fill to populate a table using data from several tabs Joel Bernard Microsoft Excel Worksheet Functions 2 11th Jan 2008 08:46 PM
auto fill data into one table based on data from a linked table =?Utf-8?B?RnJlaWRh?= Microsoft Access Forms 5 5th Sep 2007 06:29 PM
auto fill data into a cell from a lookup table =?Utf-8?B?VGV0cmFkcG9pbnQ=?= Microsoft Excel Misc 1 19th Apr 2005 04:46 PM
Auto fill a table, how? =?Utf-8?B?UnVtYmxlZmlzaA==?= Microsoft Excel Misc 2 10th Jun 2004 08:31 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:01 PM.