Hey All,
New to access here and I have picked up most of the stuff myself but am having problems with 1 thing for the last 3 days.
I am creating a basic system with 3 tables Customers, Invoices, Payments. I am creating a form that is to take in the details of a new Invoice. I am using the wizard to create the form with all the fields from the invoice table. What I want to happen is when the user uses the drop down to select who the customer is the other customer information gets filled in automatically.
I think the core of the problem is how I have set up my tables. They look like
CUSTOMER
PK – customerID
- Company name
- Contact number
- PhoneNumber
INVOICE
PK – InvoiceId
- invoiceNumber
- CustomerID (lookup of the CustomerID table)
- CompanyName (lookup of the CustomerName table)
- Status
- Date
- Amount
PAYMENT
PK – PaymentID
- CustomerID
- InvoiceID
- PaymountAmount
- Date
- Methiod
Relationships…
Customers.CustomerID -> Payment.CusotmerID
Customers.CustomerID -> Invocie.CustomerID
…So on my form I have created from the Invoices table I change the CustomerID and and Name to drop down boxes. What I want to happen is when the use uses this drop down to select 1 the other one will auto populate.
For example… the user uses the drop down box to select CustomerID = 1. I then want the Company name to be filled in with that is set for CustomerID1.
I know this is a very basic thing that I am missing here but just can’t figure it out.
I also now strongly thing that using the lookup in the table creation could be wrong but have left it there just to show you where I am.
Cheers
Roy
New to access here and I have picked up most of the stuff myself but am having problems with 1 thing for the last 3 days.
I am creating a basic system with 3 tables Customers, Invoices, Payments. I am creating a form that is to take in the details of a new Invoice. I am using the wizard to create the form with all the fields from the invoice table. What I want to happen is when the user uses the drop down to select who the customer is the other customer information gets filled in automatically.
I think the core of the problem is how I have set up my tables. They look like
CUSTOMER
PK – customerID
- Company name
- Contact number
- PhoneNumber
INVOICE
PK – InvoiceId
- invoiceNumber
- CustomerID (lookup of the CustomerID table)
- CompanyName (lookup of the CustomerName table)
- Status
- Date
- Amount
PAYMENT
PK – PaymentID
- CustomerID
- InvoiceID
- PaymountAmount
- Date
- Methiod
Relationships…
Customers.CustomerID -> Payment.CusotmerID
Customers.CustomerID -> Invocie.CustomerID
…So on my form I have created from the Invoices table I change the CustomerID and and Name to drop down boxes. What I want to happen is when the use uses this drop down to select 1 the other one will auto populate.
For example… the user uses the drop down box to select CustomerID = 1. I then want the Company name to be filled in with that is set for CustomerID1.
I know this is a very basic thing that I am missing here but just can’t figure it out.
I also now strongly thing that using the lookup in the table creation could be wrong but have left it there just to show you where I am.
Cheers
Roy