Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Business Applications
Tag Cloud
access audio black screen blue screen boot bsod connection crash dell desktop drivers dvd email error excel firefox hard drive hardware hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem ram recovery router safe mode screen slow sound spyware tdlwsp.dll trojan upgrade vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Business Applications >
WIP: Access & SQL Server Databases

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

 
Thread Tools
bladecs2002's Avatar
Junior Member with 3 posts.
 
Join Date: Nov 2009
Experience: Beginner
04-Nov-2009, 05:22 AM #1
WIP: Access & SQL Server Databases
Hi,
I have started may own bussines some time ago...
Since then I have been able to make a Access database in wich I introduce my custumers...
1st question:
My company sells energy so what I cant figure out how to link the custumers table to another table that stores the information about monthly energy consumption for each custumer.
Here are the column that I think I need...
CustumerID SerialNumber(for the energy counter) Energy ... and I realy dont know how should I cont each month energy consumpltion. I need to store each month because I need to make a "consumers profile" every year...

If you can help me, guys, I would apreciate very much an maybe I can contribute too.

P.S. I wrote SQL server because in the future I hope the database I make now will help me create one in SQL server with a front end and all...
OBP's Avatar
OBP OBP is offline
Computer Specs
Distinguished Member with 9,339 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
04-Nov-2009, 06:35 AM #2
bladecs, welcome to the Forum.
Can you post a Printscreen copy of your table Relationships please, or better still a zipped Copy of the database in Access 2000-2003 format. Just ensure that there is no Personal Data in the tables.
Perhaps you would like to read this article I wrote on Tables and Relationships and attached here
http://forums.techguy.org/tech-tips-...se-basics.html
__________________
OBP
I do not give up easily
bladecs2002's Avatar
Junior Member with 3 posts.
 
Join Date: Nov 2009
Experience: Beginner
04-Nov-2009, 06:50 AM #3
The Database
The database is not in english... and is not normalized...
I am working to normalize it. In the end it will have about 10 related tables.
The thing that is bugging me it that I have no idea how i should do the monthly energy consumption. That table is called Consum.
Attached Files
File Type: zip Database.zip (380.9 KB, 2 views)
OBP's Avatar
OBP OBP is offline
Computer Specs
Distinguished Member with 9,339 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
04-Nov-2009, 07:18 AM #4
It is a simple enough error, you have used the Client_ID as the key field for the Consum Table, wheras it should have it's own Key field which I have called ConsumID.
I have set the Relationship as a One (Customer) to Many (Consum) so that you can have as many Consum readings as you like.
I think that you should also have a Reading Date Or Reading Month field in the Consum table.
Attached Files
File Type: zip Database.zip (178.2 KB, 2 views)
__________________
OBP
I do not give up easily
bladecs2002's Avatar
Junior Member with 3 posts.
 
Join Date: Nov 2009
Experience: Beginner
04-Nov-2009, 07:30 AM #5
I'll do that
Thank you for your answer, OBP!
As I am normalizing the tables, i'll do as you say and make a column for the date of the reading.
I'll post the DB to show the result as I finish the tables.
I can't think of all the things I have to take into account at once but as i progress I'll probabaly have more questions.
BTW, thanks for the article, it was helpfull
OBP's Avatar
OBP OBP is offline
Computer Specs
Distinguished Member with 9,339 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
04-Nov-2009, 07:48 AM #6
Just let me know if you need any more help.
Reply Bookmark and Share

Tags
access database

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 01:41 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.