Re: Query Data on a Form
- From: BarryC <BarryC@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 16 May 2006 12:35:02 -0700
OK all in all a side, is there a way to populate a field on a form with a
query result?
"Rick B" wrote:
What do you mean you will need to enter it multiple times due to another.
database? If you need to export it to another database with the address
repeated, then Crete a query that will show the address for each record.
In short, you are trying to build a spreadsheet with auto-complete turned
on. Access is NOT a spreadsheet. If you want a flat file, I would
recommend using Excel.
--
Rick B
"BarryC" <BarryC@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:52BB24BF-4AB2-4267-99A6-CBC7F641C22E@xxxxxxxxxxxxxxxx
Rick,
I will have a number of sites with only 1 data entry. I will also have a
number of sites with the same address data. Unfortunately I need to
re-enter
the address data due to the table structure (another database). Thanks
Rick
"Rick B" wrote:
If the address is always the same then you don't want to store it in the
table multiple times. What if the address changes? Do you want to
update
all the records?
You have a classic one-to-many relationship. You need two tables. One
to
store the Site information, and one to store the details.
TblSites
SiteNumber
SiteName
SiteAddr1
SiteAddr2
SiteCity
SiteState
SiteZIP
SitePhone
etc.
TblMain
SiteNumber
TransactionDate (or whatever your other fields are here.)
etc.
The address for each site would only be stored ONE time in your database.
--
Rick B
"BarryC" <BarryC@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5B467365-4A1F-4DED-87E6-3BDAAB28A37D@xxxxxxxxxxxxxxxx
I created a form bound to one table. Each entry is based on a site name
and
each site name will have multiple entrys but will have the same
address.
What
I need to do is run a query based on the site name entered on the form
and
if
the site name is found have the query auto populate the address data on
the
form. I have the query created but do not know how to get the data on
the
form. Your help is appreciated.
- Follow-Ups:
- Re: Query Data on a Form
- From: Rick B
- Re: Query Data on a Form
- References:
- Re: Query Data on a Form
- From: Rick B
- Re: Query Data on a Form
- From: Rick B
- Re: Query Data on a Form
- Prev by Date: Re: Access Address and Google Maps
- Next by Date: Re: Access Address and Google Maps
- Previous by thread: Re: Query Data on a Form
- Next by thread: Re: Query Data on a Form
- Index(es):
Relevant Pages
|