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

ASP access database

Avi
Hello,

I created an access database that is on an ASP page. Utilizing frames
(split top and bottom) I would like the top portion to have links of
names. When this is clicked, it gets the information from the
database (relevent to the name clicked) and posts it to the bottom
page. The bottom page would use the access form that I created.

I do not know how to make the links at the top retrieve the
information from the database and throw it to the bottom screen (which
is another .asp page).

Thanks

Avi
Nov 12 '05 #1
3 1523

"Avi" <al****@richardson.com> wrote in message
news:23**************************@posting.google.c om...
Hello,

I created an access database that is on an ASP page. Utilizing frames
(split top and bottom) I would like the top portion to have links of
names. When this is clicked, it gets the information from the
database (relevent to the name clicked) and posts it to the bottom
page. The bottom page would use the access form that I created.

I do not know how to make the links at the top retrieve the
information from the database and throw it to the bottom screen (which
is another .asp page).

Thanks

Avi


pass the data in the query string is one way

the link in page1.asp (top frame) would be <a
href=page2.asp?data1=data&data2=moredata etc etc>link 1</a>

page2.asp would just use the data passed to it
Nov 12 '05 #2


So I can better understand. Lets say my MS access Key field is
"CompanyID". When the person clicks on the top page link, it looks for
the "CompanyID". Once it finds the "CompanyID", it takes all of the
data in that entry and places it in page2.asp (the bottom page).

If the "CompanyID" has the following fields "CompanyName",
"CompanyStart", "CompanyEnd" in the record....how would your link look
like? I am assuming that the page 1 links just open up a new page (in
the bottom frame) which is page2.asp

TIA,

Avi

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3

"Avi Lazar" <al****@richardson.com> wrote in message
news:40*********************@news.frii.net...


So I can better understand. Lets say my MS access Key field is
"CompanyID". When the person clicks on the top page link, it looks for
the "CompanyID". Once it finds the "CompanyID", it takes all of the
data in that entry and places it in page2.asp (the bottom page).

If the "CompanyID" has the following fields "CompanyName",
"CompanyStart", "CompanyEnd" in the record....how would your link look
like? I am assuming that the page 1 links just open up a new page (in
the bottom frame) which is page2.asp

TIA,

Avi

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


ok, (assuming using VBscript, and much simplified syntax)

page1.asp has the link "page2.asp?companyID=companyA"

page2.asp could contain

searchstr = request.querystring("companyID") --- This reads in the search
criteria from the query string

sqlQuery = "SELECT * FROM tablename WHERE companyID = " & "'" & searchstr &
"'" --- retrieve data from database for companyID = searchstr (in this case
companyA)

strcompanyname = rs("comapnyName")
strcompanyStart = rs("companyStart")
etc etc

so, what we've done here is query the database table (called tablename) for
all the details relating to a company that has the companyID of companyA.
Then placed this data into strings which we can response.write wherever we
want them to appear in page2.asp

hope that makes sense to you, let me know if you need more help


Nov 12 '05 #4

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

Similar topics

3
by: Nicola | last post by:
Hi Everyone, I am new to programming and would like to know how to open an access Report from within vb 6. I am trying to write a program to organise cross stitch threads. I have found out how...
11
by: Rosco | last post by:
Does anyone have a good URL or info whre Oracle and Access are compared to one another in performance, security, cost etc. Before you jump on me I know Oracle is a Cadillac compared to Access the...
64
by: John | last post by:
Hi What future does access have after the release of vs 2005/sql 2005? MS doesn't seem to have done anything major with access lately and presumably hoping that everyone migrates to vs/sql. ...
52
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
49
by: Mell via AccessMonster.com | last post by:
I created databases on Access 2003 and I want to deploy them to users. My code was also done using 2003. If they have Ms Access 2000 or higher, will they be able to use these dbs with all code,...
17
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting...
34
by: Mathieu Trentesaux | last post by:
Hello I downloaded Office 2007 for this reason : It seems, once again, that it is impossible to save any modification done in a VBA library, from the main project in Access. The save button...
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...
11
by: Harel | last post by:
I have a report SQL which have been working for a few weeks. Its large and the target database is large. It has 59 join, and I dont think there is anything I can do about this, since the DB I use...
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
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: 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:
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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.