Thank you so much for the information which you provided.
Basically what needs to be done is as follows:
It is for an advertising company which provides clients with laminated ads
on restaurant tables on a wooden unit.
so what needs to happen is to have a form for all the clients (advertisers),
which i have. with all their contact information and contract
information(how many ads, unit price, total price, etc)
then i have a form which is for the restaurants - the restaurant name,
address, contact info, and number of tables in the restaurant. Each time an
advertiser's (clients') ads are put into the various restaurants, then i
need a way to somehow select which restaurants their ads have gone into, and
be able to print out which restaurants their ads are in.
Say for example i have a client named: ABC Removals, their adverts were put
into the following restaurants: 123Food, THe Grill, and Spur...- Once i
have somehow selected these restaurants for ABC Removals, I would also need
to print "per restaurant", so i would need to be able to print out which
Adverts are in spur, for example.
I hope this is more helpful...
If using a listbox would be the most suitable way to select the restaurant,
where would i send the "selectedrestaurants" to ? seperate tables?
THank you once again for all your help in this matter, it is greatly
appreciated
First off: Stop thinking about Forms or Printouts until you have your tables
designed correctly. Forms and Reports are *secondary* - the tables are the
basis of your database, and unless they're set up right you're going to be in
a lot of trouble!
You have a Many to Many relationship: each client will provide ads to many
restaurants, and each restaurant will have many ads. To model this you need
*THREE* tables, not two: a table of Clients, a table of Restaurants, and a
table of Ads. The Ads table would have a field linked to the primary key of
the Clients table (indicating which client is being advertised) and another
field linked to the primary key of the Restaurants table (indicating where
this ad goes). There will undoubtedly be other fields such as the date this ad
started, any special features of the ad in this restaurant as distinct from
other restaurants, etc.
The way you would do the data entry is to use a Form based on the Clients
table (or the Restaurant table, or both - whichever is more convenient) with a
Subform based on the Ads table. If Human Pretzel Chiropractic wants to
advertise in a dozen restaurants, you would open the Clients form, navigate to
that client (or add their data as a new client), and then on the subform use a
combo box to add new records to the Ads table, selecting the relevant
restaurants.
Your printouts would be based on a Query joining all three tables with
appropriate criteria to select what you want to see.