Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Automatically add field data
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Automatically add field data

 Post Reply Post Reply
Author
AlexDP View Drop Down
Groupie
Groupie


Joined: 19 October 2004
Location: England
Status: Offline
Points: 45
Post Options Post Options   Thanks (0) Thanks(0)   Quote AlexDP Quote  Post ReplyReply Direct Link To This Post Topic: Automatically add field data
    Posted: 02 August 2005 at 3:14pm

I'm using MS Access 2000.
I want to be able to put in a piece of text in one field of a table and the database automatically add another field.

For example, enter a supplier and the database adds the catagory.
So we could have 20 suppliers but only 5 catagories. How do I do this?
I can create another table with each supplier matching a catagory.


Supplier1   Cat1
Supplier 2  Cat 1
Supplier 3  Cat 2
etc., etc.,

Thanks for your help. Hope you understood what I am asking! (If this is not possible in Access then I could use Excel.)

Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 02 August 2005 at 3:27pm
yim not 100% sure what you want to do.

you want 2 tables category and suppplier.

you need ot add a insert INTO suppliers table and set the category field to the same value as the field within the category table,.

how is it determined what category it goes into?
Back to Top
AlexDP View Drop Down
Groupie
Groupie


Joined: 19 October 2004
Location: England
Status: Offline
Points: 45
Post Options Post Options   Thanks (0) Thanks(0)   Quote AlexDP Quote  Post ReplyReply Direct Link To This Post Posted: 02 August 2005 at 3:38pm
I really want just one table that will contain a variety of information.

When I enter the supplier's name I want the catagory (say the type of goods supplied/department) to be automatically added.

Somewhere I would have to pre-define each supplier and the catagory to go with it. Each catagory would have several suppliers.

Back to Top
dfrancis View Drop Down
Senior Member
Senior Member


Joined: 16 March 2005
Location: United States
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote dfrancis Quote  Post ReplyReply Direct Link To This Post Posted: 02 August 2005 at 4:58pm
Originally posted by AlexDP AlexDP wrote:

I really want just one table that will contain a variety of information.

When I enter the supplier's name I want the category (say the type of goods supplied/department) to be automatically added.

Somewhere I would have to pre-define each supplier and the catagory to go with it. Each catagory would have several suppliers.

 
I think that would be your second table. Or at least a text array that you could reference when inserting.
 
Just from the info... I would say two tables.
 
tbl_Supplier_Contact
Name | Address | Phone | etc
 
tbl_Supplier_Categories
Category_Name | Category_Info |
 
If the supplier can belong to more than one category, then it gets interesting in that you have to allow multiple selections. I'm thinking a category column in the contact table would be all you need.
 
(Just thinking out loud.)
 
 


Edited by dfrancis - 02 August 2005 at 5:04pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.