473,382 Members | 1,238 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,382 software developers and data experts.

Help needed.

SB
im trying to build a database containing several products and the
product price. basically these are computer parts/products and the aim
of the database is to "build your own pc" using drop down menus on a
form and having a running sum displaying the overall total of the
"computer".

im getting there slowly, as i havent used access in maybe 10years.....

basically this is the direction im going......a table for cpu product
and price, table for hdd product & price, table for ram product and
price etc etc, and then i created a table and used the "lookupwizard" to
give me the choice! any help/guidence would b appreciated.

im also aware that access might not be the best solution for this, again
any help would b great.

Nov 12 '05 #1
8 1013
"SB" <em******@blueyonder.co.uk> wrote in message
news:Lv*****************@news-binary.blueyonder.co.uk...
im trying to build a database containing several products and the
product price. basically these are computer parts/products and the aim
of the database is to "build your own pc" using drop down menus on a
form and having a running sum displaying the overall total of the
"computer".

im getting there slowly, as i havent used access in maybe 10years.....

basically this is the direction im going......a table for cpu product
and price, table for hdd product & price, table for ram product and
price etc etc, and then i created a table and used the "lookupwizard" to
give me the choice! any help/guidence would b appreciated.
Apalling! Do this, or something like it.

tblParts:
PartID (Primary Key - autonumber if you like)
PartName (values like 'Hitachi Travelstor')
Price (values like '£120.00')
PartTypeID
SupplierID (maybe?)
etc.

tblPartTypes:
PartTypeID (Primary Key)
PartTypeName (values like 'Hard Disk Drive')

One to many relationship from tblPartTypes to tblParts on PartTypeID.

And also from Supplier to tblParts (maybe, that might be many to many).
im also aware that access might not be the best solution for this, again
any help would b great.


Access is just fine.

Mike
Nov 12 '05 #2
"SB" <em******@blueyonder.co.uk> wrote in message
news:Lv*****************@news-binary.blueyonder.co.uk...
im trying to build a database containing several products and the
product price. basically these are computer parts/products and the aim
of the database is to "build your own pc" using drop down menus on a
form and having a running sum displaying the overall total of the
"computer".

im getting there slowly, as i havent used access in maybe 10years.....

basically this is the direction im going......a table for cpu product
and price, table for hdd product & price, table for ram product and
price etc etc, and then i created a table and used the "lookupwizard" to
give me the choice! any help/guidence would b appreciated.

Access is a great solution for this, but your design needs some work. You
need all your components in a single table, otherwise you're going to have
to keep adding tables anytime you add a different component type. I suggest
tables something like this:

(Insert --> Query --> Design --> View --> SQL View to run these scripts)

create table componentTypes
(
componentType varchar(50) not null
constraint PK_componentTypes primary key
)

----------------------------------------------------

create table manufacturers
(
mfgName varchar(50) not null
constraint PK_mfgName primary key,
address varchar(255) null,
telephone varchar(50) null
)
----------------------------------------------------

create table components
(
partNbr varchar(50) not null
constraint PK_partNbr primary key,
mfgName varchar(50) not null
constraint FK_components_mfgName
references manufacturers(mfgName),
componentType varchar(50) not null
constraint FK_components_componentType
references componentTypes(componentType),
componentDescription varchar(255) null,
mfgPartNbr varchar(255) null,
listPrice money
)











Nov 12 '05 #3
SB
John Winterbottom wrote:
"SB" <em******@blueyonder.co.uk> wrote in message
news:Lv*****************@news-binary.blueyonder.co.uk...
im trying to build a database containing several products and the
product price. basically these are computer parts/products and the aim
of the database is to "build your own pc" using drop down menus on a
form and having a running sum displaying the overall total of the
"computer".

im getting there slowly, as i havent used access in maybe 10years.....

basically this is the direction im going......a table for cpu product
and price, table for hdd product & price, table for ram product and
price etc etc, and then i created a table and used the "lookupwizard" to
give me the choice! any help/guidence would b appreciated.


Access is a great solution for this, but your design needs some work. You
need all your components in a single table, otherwise you're going to have
to keep adding tables anytime you add a different component type. I suggest
tables something like this:

(Insert --> Query --> Design --> View --> SQL View to run these scripts)

create table componentTypes
(
componentType varchar(50) not null
constraint PK_componentTypes primary key
)

----------------------------------------------------

create table manufacturers
(
mfgName varchar(50) not null
constraint PK_mfgName primary key,
address varchar(255) null,
telephone varchar(50) null
)
----------------------------------------------------

create table components
(
partNbr varchar(50) not null
constraint PK_partNbr primary key,
mfgName varchar(50) not null
constraint FK_components_mfgName
references manufacturers(mfgName),
componentType varchar(50) not null
constraint FK_components_componentType
references componentTypes(componentType),
componentDescription varchar(255) null,
mfgPartNbr varchar(255) null,
listPrice money
)





thanks very much for feedback guys,






Nov 12 '05 #4
SB <em******@blueyonder.co.uk> wrote in message news:<Lv*****************@news-binary.blueyonder.co.uk>...
im trying to build a database containing several products and the
product price. basically these are computer parts/products and the aim
of the database is to "build your own pc" using drop down menus on a
form and having a running sum displaying the overall total of the
"computer".

im getting there slowly, as i havent used access in maybe 10years.....

basically this is the direction im going......a table for cpu product
and price, table for hdd product & price, table for ram product and
price etc etc, and then i created a table and used the "lookupwizard" to
give me the choice! any help/guidence would b appreciated.

im also aware that access might not be the best solution for this, again
any help would b great.


I built exactly such a DB application in 1997 for a computer store using
Access 97. I'll check the contract I signed to see if there was a five
year stipulation for sharing code. If so, I can give you a big head
start on your project. If not, I can still give you lots of hints.

James A. Fortune
Nov 12 '05 #5
SB
James Fortune wrote:
SB <em******@blueyonder.co.uk> wrote in message news:<Lv*****************@news-binary.blueyonder.co.uk>...
im trying to build a database containing several products and the
product price. basically these are computer parts/products and the aim
of the database is to "build your own pc" using drop down menus on a
form and having a running sum displaying the overall total of the
"computer".

im getting there slowly, as i havent used access in maybe 10years.....

basically this is the direction im going......a table for cpu product
and price, table for hdd product & price, table for ram product and
price etc etc, and then i created a table and used the "lookupwizard" to
give me the choice! any help/guidence would b appreciated.

im also aware that access might not be the best solution for this, again
any help would b great.

I built exactly such a DB application in 1997 for a computer store using
Access 97. I'll check the contract I signed to see if there was a five
year stipulation for sharing code. If so, I can give you a big head
start on your project. If not, I can still give you lots of hints.

James A. Fortune

James that would be wonderful if you can m8, im still getting there
slowly , im having a very annoying problem at the moment, im trying to
add the total of 2 fields in a form example =(text18+text19) i forget
the exact code of top of my head , but for some reason when use + sign
it simply puts the 2 figures next to each other tie 50+150 would show
50150, but when i replace the + with a - it subtracts without a problem
someone pl help me!

Nov 12 '05 #6
SB
James Fortune wrote:
SB <em******@blueyonder.co.uk> wrote in message news:<Lv*****************@news-binary.blueyonder.co.uk>...
im trying to build a database containing several products and the
product price. basically these are computer parts/products and the aim
of the database is to "build your own pc" using drop down menus on a
form and having a running sum displaying the overall total of the
"computer".

im getting there slowly, as i havent used access in maybe 10years.....

basically this is the direction im going......a table for cpu product
and price, table for hdd product & price, table for ram product and
price etc etc, and then i created a table and used the "lookupwizard" to
give me the choice! any help/guidence would b appreciated.

im also aware that access might not be the best solution for this, again
any help would b great.

I built exactly such a DB application in 1997 for a computer store using
Access 97. I'll check the contract I signed to see if there was a five
year stipulation for sharing code. If so, I can give you a big head
start on your project. If not, I can still give you lots of hints.

James A. Fortune

James that would be wonderful if you can m8, im still getting there
slowly , im having a very annoying problem at the moment, im trying to
add the total of 2 fields in a form example =(text18+text19) i forget
the exact code of top of my head , but for some reason when use + sign
it simply puts the 2 figures next to each other tie 50+150 would show
50150, but when i replace the + with a - it subtracts without a problem
someone pl help me!
............
i have overcome this latest problem now, proberly not the best way to
overcome it, but im no longer loosing hair by the kilo!!!!!!!

Nov 12 '05 #7
SB <em******@blueyonder.co.uk> wrote in message news:<OP******************@news-binary.blueyonder.co.uk>...
James Fortune wrote:
SB <em******@blueyonder.co.uk> wrote in message news:<Lv*****************@news-binary.blueyonder.co.uk>...
im trying to build a database containing several products and the
product price. basically these are computer parts/products and the aim
of the database is to "build your own pc" using drop down menus on a
form and having a running sum displaying the overall total of the
"computer".

im getting there slowly, as i havent used access in maybe 10years.....

basically this is the direction im going......a table for cpu product
and price, table for hdd product & price, table for ram product and
price etc etc, and then i created a table and used the "lookupwizard" to
give me the choice! any help/guidence would b appreciated.

im also aware that access might not be the best solution for this, again
any help would b great.

I built exactly such a DB application in 1997 for a computer store using
Access 97. I'll check the contract I signed to see if there was a five
year stipulation for sharing code. If so, I can give you a big head
start on your project. If not, I can still give you lots of hints.

James A. Fortune

James that would be wonderful if you can m8, im still getting there
slowly , im having a very annoying problem at the moment, im trying to
add the total of 2 fields in a form example =(text18+text19) i forget
the exact code of top of my head , but for some reason when use + sign
it simply puts the 2 figures next to each other tie 50+150 would show
50150, but when i replace the + with a - it subtracts without a problem
someone pl help me!
...........
i have overcome this latest problem now, proberly not the best way to
overcome it, but im no longer loosing hair by the kilo!!!!!!!


The plus-sign "+" indicates to MS Access to concatenate the two values
in the controls. That is why you are getting the 50150. To actually
obtain the sum of the two values you would need to do something like
this:
example = cint(text18) + cint(text19)
or use the appropriate datatype conversion function (clng or cdouble,
etc). I realize this doesn't explain why subtracting the two values
works ok, but I'm sure someone else can explain that one. :^)

Hope this helps.
Steve
Nov 12 '05 #8
SB <em******@blueyonder.co.uk> wrote in message news:<OP******************@news-binary.blueyonder.co.uk>...
James Fortune wrote:

im also aware that access might not be the best solution for this, again
any help would b great.

I built exactly such a DB application in 1997 for a computer store using
Access 97. I'll check the contract I signed to see if there was a five
year stipulation for sharing code. If so, I can give you a big head
start on your project. If not, I can still give you lots of hints.

James A. Fortune

James that would be wonderful if you can m8, im still getting there
slowly , im having a very annoying problem at the moment, im trying to
add the total of 2 fields in a form example =(text18+text19) i forget
the exact code of top of my head , but for some reason when use + sign
it simply puts the 2 figures next to each other tie 50+150 would show
50150, but when i replace the + with a - it subtracts without a problem
someone pl help me!
...........
i have overcome this latest problem now, proberly not the best way to
overcome it, but im no longer loosing hair by the kilo!!!!!!!


Sam,

I checked the contract and there is not a five year clause because
they had one of the best local law firms write it. However, I did
discover that they never finished paying for the database! The
database went into production and was sold to several computer stores.
If they won't sign a promissory note for the rest I'll have no trouble
with sending you the complete db. Regardless, I still want to help
you as much as possible with your new project.

James A. Fortune
Nov 12 '05 #9

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

Similar topics

28
by: stu_gots | last post by:
I have been losing sleep over this puzzle, and I'm convinced my train of thought is heading in the wrong direction. It is difficult to explain my circumstances, so I will present an identical...
7
by: ChadDiesel | last post by:
Hello everyone, I'm having a problem with Access that I need some help with. The short version is, I want to print a list of parts and part quantities that belong to a certain part group---One...
7
by: Tina | last post by:
I have an asp project that has 144 aspx/ascx pages, most with large code-behind files. Recently my dev box has been straining and taking long times to reneder the pages in the dev environment. ...
10
by: Mae Lim | last post by:
Dear all, I'm new to C# WebServices. I compile the WebService project it return no errors "Build: 1 succeeded, 0 failed, 0 skipped". Basically I have 2 WebMethod, when I try to invoke the...
2
by: trihanhcie | last post by:
I m currently working on a Unix server with a fedora 3 as an os My current version of mysql is 3.23.58. I'd like to upgrade the version to 5.0.18. After downloading from MYSQL.COM the package on...
2
by: Steve K | last post by:
I got a bit of a problem I like some help on. I'm designing an online training module for people that work in food processing plants. This is my target audience. These workers have little or no...
3
by: Kitana907 | last post by:
Hi- I'm attempting to write a module that uses and updates info from two tables and does the following: Opens the recordset of a table called "tblstoreinv" If the Needed Field in the...
9
by: smartbei | last post by:
Hello, I am a newbie with python, though I am having a lot of fun using it. Here is one of the excersizes I am trying to complete: the program is supposed to find the coin combination so that with...
2
by: rookiejavadude | last post by:
I'm have most of my java script done but can not figure out how to add a few buttons. I need to add a delete and add buttong to my existing java program. Not sure were to add it on how. Can anyone...
32
by: =?Utf-8?B?U2l2?= | last post by:
I have a form that I programmatically generate some check boxes and labels on. Later on when I want to draw the form with different data I want to clear the previously created items and then put...
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...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.