473,322 Members | 1,566 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Accounts and Products

Hello all

I am fairly new to databasing but learning fast. Using access as my platform
i have created two tables one Accounts the other Products.

What i want to achive is on the prompt account No enter the specific account
number E.g 1 this pulls the account info for that client up onto the screen
and in the second half of the screen is a datasheet embeded to show all the
transaction for that client. What im having trouble with is getting the
products screen to attach the products to the account in question. I can get
it to enter the first product but nothing more one product to one account? I
dont really want to have to create the account each time the client orders
with me.

Dont know if you need more info if you do please just ask i will be happy to
learn how to do this.

Kind regards
Brian

Jun 8 '07 #1
3 1377
Your Accounts and Products tables need to look like below and you need more
tables!

TblAccount
AccountID
ClientName
.......
etc

TblProduct
ProductID
ProductName
......
etc

TblOrder
OrderID
OrderDate
AccountID
.....
etc

TblOrderDetail
OrderDetailID
OrderID
ProductID
.....
etc

To get the display you want you need a form/subform, The main form needs to
be based on a query that includes TblAccount and TblOrder. The subform needs
to be based on a query that includes TblProduct and TblOrderDetail.

PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
re******@pcdatasheet.com


"trogenone" <u34918@uwewrote in message news:7368228761ec3@uwe...
Hello all

I am fairly new to databasing but learning fast. Using access as my
platform
i have created two tables one Accounts the other Products.

What i want to achive is on the prompt account No enter the specific
account
number E.g 1 this pulls the account info for that client up onto the
screen
and in the second half of the screen is a datasheet embeded to show all
the
transaction for that client. What im having trouble with is getting the
products screen to attach the products to the account in question. I can
get
it to enter the first product but nothing more one product to one account?
I
dont really want to have to create the account each time the client orders
with me.

Dont know if you need more info if you do please just ask i will be happy
to
learn how to do this.

Kind regards
Brian

Jun 8 '07 #2
Thank you Steve
I will try this and see how i go. Do i relation them to each ID or ?

Brain

Steve wrote:
>Your Accounts and Products tables need to look like below and you need more
tables!

TblAccount
AccountID
ClientName
......
etc

TblProduct
ProductID
ProductName
.....
etc

TblOrder
OrderID
OrderDate
AccountID
....
etc

TblOrderDetail
OrderDetailID
OrderID
ProductID
....
etc

To get the display you want you need a form/subform, The main form needs to
be based on a query that includes TblAccount and TblOrder. The subform needs
to be based on a query that includes TblProduct and TblOrderDetail.

PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
re******@pcdatasheet.com
>Hello all
[quoted text clipped - 22 lines]
>Kind regards
Brian
--
Message posted via http://www.accessmonster.com

Jun 11 '07 #3
Yes, create relationships between fields ending in "ID" and having the same
name.

PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
re******@pcdatasheet.com

"trogenone via AccessMonster.com" <u34918@uwewrote in message
news:738d318295c44@uwe...
Thank you Steve
I will try this and see how i go. Do i relation them to each ID or ?

Brain

Steve wrote:
>>Your Accounts and Products tables need to look like below and you need
more
tables!

TblAccount
AccountID
ClientName
......
etc

TblProduct
ProductID
ProductName
.....
etc

TblOrder
OrderID
OrderDate
AccountID
....
etc

TblOrderDetail
OrderDetailID
OrderID
ProductID
....
etc

To get the display you want you need a form/subform, The main form needs
to
be based on a query that includes TblAccount and TblOrder. The subform
needs
to be based on a query that includes TblProduct and TblOrderDetail.

PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
re******@pcdatasheet.com
>>Hello all
[quoted text clipped - 22 lines]
>>Kind regards
Brian

--
Message posted via http://www.accessmonster.com

Jun 11 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: jiing | last post by:
I want to use web interface to do : 1. user accounts management (adminstration side) 2. personal password management (user side) 3. create actual accounts under windows 2003 server( for handling...
1
by: Amos | last post by:
Dear Sirs I am trying to build a cash flow software, first I thought to build one table for each cash and bank account, but talking to some people they suggested me to build one unique table for...
3
by: dave | last post by:
How do I programatically determine the enabled or disabled status of AD accounts? I have queried the userAccountControl key, but all I get back is an int, and it seems to be the same for enabled...
3
by: Prasad Karunakaran | last post by:
I have the following C# code to enumerate the list of groups in a domain using ADSI. The problem is if the domain contains machine accounts ($) it get those accounts too. Can somebody help me...
1
by: Charles | last post by:
Hello, I am interested in subscribing to Dreamhost's Crazy plan. I want to offer a free e-mail service for students, and I want them to be able to create e-mail accounts on the fly using PHP. Is...
2
by: Stephenoja | last post by:
Hello Guys, I have a problem that has to do with Aging Accounts Receivable. I have three tables with customer account numbers, customer names, customer balances for the years 2003, 2004 and...
2
by: =?Utf-8?B?am1hZ2FyYW0=?= | last post by:
I'm trying to get a list of user accounts on the local computer - the same list you see when you are about to log in to Windows XP or Vista. This needs to work on a home computer (not connected to...
2
by: Gilberto | last post by:
Hello guys, i just started developing a database for my company which will help a department to build BILL OF MATERIALS (BOM) of different projects. The main idea is that FIRST the user will...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.