Re: Lookup Values from Another Table
- From: "Jeff Boyce" <JeffBoyce_IF@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 6 Jan 2007 05:59:11 -0800
Dave
A scan through this (tablesdbdesign) newsgroup will reveal a strong
consensus AGAINST using the lookup data type in a table. In fact, you'll
find a strong bias against working directly in the tables (for other than
design/development).
The most-commonly recommended approach (and I use it, too) is to use forms
to display data for add/edit/delete. In this environment, you'd simply use
a combo box (or a list box) to show the possible roomtariff values, and bind
the control to the underlying (roomtariffID-)field. Among other advantages,
working in forms gives you much more control over which records are
available, not to mention the rich event collection in forms (pretty much
absent in tables).
--
Regards
Jeff Boyce
Microsoft Office/Access MVP
http://mvp.support.microsoft.com/
Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/
Microsoft Registered Partner
https://partner.microsoft.com/
"Dave C" <DaveC@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5CDBB65C-1D77-4980-AF36-69928C0BD803@xxxxxxxxxxxxxxxx
I have a guest house booking database where the tariffs are based on highand
low seasons. I have a tariff field in the "rooms" table which I want tomake
a list box which displays the value from the "roomtariff" field in theand
"tariff" table. There are several tariffs for each room based on a start
end date (separate fields in the tariff table) and i only want to displayone
in the list box (rooms table) dependant upon the room type and thecurrent
date matching the specific date range in the tariff table.
Any help would be greatly appreciated.
Thanks ... Dave
.
- Prev by Date: Re: Database Properties : Date Created vs DateCreated
- Next by Date: Re: Sample DB Designs
- Previous by thread: Re: Stock Performance
- Next by thread: Contacts Tables
- Index(es):