dbTalk Databases Forums  

How to use a Form with two tables

comp.databases.ms-access comp.databases.ms-access


Discuss How to use a Form with two tables in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
galsaba
 
Posts: n/a

Default How to use a Form with two tables - 05-19-2011 , 08:17 AM






Say I have a tblCustomers and tblSales.
tblCustomers has: CustomerID, CustomerName, CustomerAddress,
CustomerPhone
tblSales has: CustomerID, SalesOrderNo, SalesDate, ProductID,
CustomerName, CustomerAddress, CustomerPhone.
The tables are linked with CustomerID.
How can I create a form getting data from both tables, and enetring
the data to the tblSales.
Using the form I will be able to change CustomerName, CustomerAddress,
CustomerPhone, but this will be changed on tblSales only (and not in
tblCustomers).

Any help here would be greatly apprecaited!

Thanks,

Galsaba

Reply With Quote
  #2  
Old   
jonceramic
 
Posts: n/a

Default Re: How to use a Form with two tables - 05-19-2011 , 09:21 AM






On May 19, 8:17*am, galsaba <gals... (AT) gmail (DOT) com> wrote:
Quote:
Say I have a tblCustomers and tblSales.
tblCustomers has: CustomerID, CustomerName, CustomerAddress,
CustomerPhone
tblSales has: *CustomerID, SalesOrderNo, SalesDate, ProductID,
CustomerName, CustomerAddress, CustomerPhone.
The tables are linked with CustomerID.
How can I create a form getting data from both tables, and enetring
the data to the tblSales.
Using the form I will be able to change CustomerName, CustomerAddress,
CustomerPhone, but this will be changed on tblSales only (and not in
tblCustomers).

Any help here would be greatly apprecaited!

Thanks,

Galsaba
G,

Before we launch into a lesson on Relational Databases. Are you
suggesting you want to be able to have a separate name, address, and
phone number saved in tblSales. (i.e. like an invoice that stays with
the old info, even if the customer changes their info later.)

Jon

Reply With Quote
  #3  
Old   
galsaba
 
Posts: n/a

Default Re: How to use a Form with two tables - 05-20-2011 , 11:51 AM



On May 19, 10:21*am, jonceramic <joncera... (AT) gmail (DOT) com> wrote:
Quote:
On May 19, 8:17*am,galsaba<gals... (AT) gmail (DOT) com> wrote:





Say I have a tblCustomers and tblSales.
tblCustomers has: CustomerID, CustomerName, CustomerAddress,
CustomerPhone
tblSales has: *CustomerID, SalesOrderNo, SalesDate, ProductID,
CustomerName, CustomerAddress, CustomerPhone.
The tables are linked with CustomerID.
How can I create a form getting data from both tables, and enetring
the data to the tblSales.
Using the form I will be able to change CustomerName, CustomerAddress,
CustomerPhone, but this will be changed on tblSales only (and not in
tblCustomers).

Any help here would be greatly apprecaited!

Thanks,

Galsaba

G,

Before we launch into a lesson on Relational Databases. *Are you
suggesting you want to be able to have a separate name, address, and
phone number saved in tblSales. *(i.e. like an invoice that stays with
the old info, even if the customer changes their info later.)

Jon- Hide quoted text -

- Show quoted text -
Yes, exactly as you described.

Thanks,

galsaba

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.