473,382 Members | 1,359 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.

ASP ADO MS Access database links

Fary4u
273 100+
Hi

i'm trying to make one file with dropdown list from Product table where all products

like fashion category
1- Jeans
2- Tops
3- Shoes

But only problem is i need to take values from MS Access table where each product has different value like

1- Jeans ( Style - Bootfit... / Size - 32... / Color - Black... )
2- Tops ( Style - V Nick... / Size - Medium... / Color - Green )
3- Shoes ( Style - Laces... / Size - 9"... / Color - Brown )

if any body know any example or any thing which can help me i'm b really great full

__________________________________________________

i think so these all value store are different to each other so it's stored into database as different table & need if condition to access from the database.

if there is any question feel free to send me email

Regards
<send me a pm>
Jul 18 '07 #1
6 1635
jhardman
3,406 Expert 2GB
I don't understand how your db table is set up. Could you elaborate? What are the field names and what are the values in typical records?

Jared
Jul 18 '07 #2
Fary4u
273 100+
Hi thank for you replay

it's very difficult to explain hope fully following link can explain every thing, overall functionality is something like this but i'm using asp to handle this, coz i'm developing front-end as well as back-end



http://www.fastcomshosting.co.uk/fashion/

If any suggestion or any helpful example please send me a PM

Best Regards
Farhan
Jul 19 '07 #3
jhardman
3,406 Expert 2GB
Farhan,

I think it's going to be easiest if you compile the different lists separately in arrays or some such and then print the page, as your db is set up, I don't see an easy way to connect to it and get all of the info at once.

It makes sense to me to organize the db differently. You might want to think of just using one style table and one size table, rather than having different tables specific for different product types. This would make the connection simpler and still keep people from trying to enter a pants size for a top. Say you added a field in style and size tables that refer to the category, like this:
Expand|Select|Wrap|Line Numbers
  1. Size_ID_____Name______category
  2. 1___________Small______tops
You should also consider putting just the ID number in the products size, color, category, and style fields (like where I put "tops" above, it should probably say "2"). This allows for best control.

Now, if I understand you right, you want to allow someone to first select a type of clothing then select a style, a size, a color, and get the price? or do you want to give a big table with all of the products? If you just want to make a big table, then you can connect like this:
Expand|Select|Wrap|Line Numbers
  1. query = "SELECT * FROM categories, styles, sizes, colors, products"
  2. query = query & " WHERE products.category = category_ID"
  3. query = query & " AND products.color = color_ID"
  4. query = query & " AND products.style = style_ID"
  5. query = query & " AND products.size = size_ID"
Does this point you where you want to go?

Jared
Jul 19 '07 #4
Fary4u
273 100+
Hi thanks for you replay

is any possiblity to give me some example using ADO Database Links but just give need idea how to over come this problem using ASP Page for dropdown list of product filed ( Colos / Size ) Etc . . .

i've done this but does not working properly

' get sizes
sSQL = "select * from colours,product_colours where colours.id = color_id and prod_id='" & sID & "'"
set rsColours = Server.CreateObject("ADODB.RecordSet")
rsColours.open sSQL, sConn,adOpenKeyset,adLockReadOnly

' get styles
sSQL = "select * from styles,product_styles where styles.id = style_id and prod_id='" & sID & "'"
set rsStyles = Server.CreateObject("ADODB.RecordSet")
rsStyles.open sSQL, sConn,adOpenKeyset,adLockReadOnly
%>


Regards
Farhan
Jul 20 '07 #5
jhardman
3,406 Expert 2GB
Fahran,

This looks good. What exactly is the problem it is giving you? prod_id might need to be a number, in which case it should not be in quotes:
Expand|Select|Wrap|Line Numbers
  1. ...WHERE styles.id = style_id AND prod_id=" & sID
Jared
Jul 20 '07 #6
Fary4u
273 100+
Thx

Yep you absolute rite.
can you give me replay with my email

please take a look my website www.insidevision.co.uk

Regards
Farhan
Jul 22 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Roar | last post by:
Hi! I have got 1 access 2000 DB, one simple search form, and 3 .asp pages (one for deleting a record, one for inserting a record and one for listing searchresults). Deleting records works fine,...
5
by: dananrg | last post by:
I've created a small company database where the tables reside in a SQL Server database. I'm using Access 2000 forms for a front end. I've got a System DSN set-up to SQL Server and am using links...
4
by: intl04 | last post by:
How do I create a data input form in Access that is external to the Access database to which it's connected (if that's possible, which I believe it is)? For example, if someone clicks on an Access...
3
by: ANSWER | last post by:
Hi, Does anybody know where can I download free Access templates or a few finished databases. I need them just for learning. Thanks
15
by: brettclare | last post by:
I have linked a large SQL Server table to Access, however 'only' 2,195,439 records are shown and are available to query. Can I increase the size (cache??)/number of records showing in Access? ...
4
by: Ray | last post by:
Does anyone out there have experience with using Db2 8.2 with a program called MISys (also known as ACCPAC). I am having some problems with the application running exteremly slow on workstations...
2
by: Sam Shaw | last post by:
I have been looking after an MS Access database, using table links to access data in a back-end MDB database. We have recently micrated to a SQL Server 2000 back-end atabase, once again accessing...
4
by: Richard | last post by:
hi there, i've got a mysql database with a research data. i would like to get some information from that database and save it as ms access database. it will be a client feature. the client...
21
by: nihad.nasim | last post by:
Hi there, I have a database in Access that I need on the web. The web page should connect to the database and write records for certain tables and view records for others. I want to know a...
6
by: tony.abbitt | last post by:
I have recently installed Office 2007 (SP1) retaining the previous installation of Office 2003. I have converted an Access 2003 database to Access 2007. The database contains the VBA code...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.