Computing.Net > Forums > Office Software > Insert through form

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Insert through form

Reply to Message Icon

Name: WhiteRaven
Date: September 22, 2004 at 11:16:29 Pacific
OS: WinXP Pro
CPU/Ram: Athlon XP 2000+
Comment:

i've basically got 2 tables, table1 with 2 columns called "OrganisationName" {PK} and "ContactName". table2 has 3 columns "OrganisationName" linked to the 1st table, "ContactName" also linked to table2 and "PhNo". i've created a form with txtboxes "table1.OrganisationName", "table1.ContactName" and "table2.PhNo". what i'm after is that everytime i add something to table1.OrganisationName, it gets added to table2.OrganisationName as well. same with "ContactName". i can't seem to do this even though the tables are linked together. how can i do this through a form?




Sponsored Link
Ads by Google

Response Number 1
Name: Mark.UK
Date: September 22, 2004 at 12:51:40 Pacific
Reply:

In a database it is best not to store duplicate data which is what you are doing by having the same field data in both tables, why don't you just store all your data in one table?

M


0

Response Number 2
Name: WhiteRaven
Date: September 22, 2004 at 16:24:11 Pacific
Reply:

i have simplified my example, my actual database has other attributes and data linked


0

Response Number 3
Name: pmkdatabase
Date: September 25, 2004 at 04:42:05 Pacific
Reply:

What do you mean the tables are 'linked'? If you mean a lookup column, then that does not automatically add new data in the first to the second.

If you have a one to many situation, say several contacts for one company, there are a number of approaches that can be used, but on a Outlook form these will be limited, and I haven't worked with them enough to be sure what will work and what won't.

Basically you either have to have code that will return the new identity field of the the 'one' side, the company, and then add that with the contact info to the contact table, or have the user save the form (could be automatically when they go to a second form), and reload the customer table so there is a choice of selecting that new customer in an Add Contacts form.

Peter
(Alert me if you want a reply)


0
Reply to Message Icon

Related Posts

See More


Outlook 2002 deleting iss... Changing default backgrou...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Insert through form

excel 2007 www.computing.net/answers/office/excel-2007/9741.html

Excel Macro Help: Is it even possib www.computing.net/answers/office/excel-macro-help-is-it-even-possib/7522.html

math functions in Access 2007? www.computing.net/answers/office/math-functions-in-access-2007/9417.html