473,378 Members | 1,146 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 - Need sample code for 3 table Internet/Server based Data Base

- I know enough ASP and Access to be dangerous :)
- I need to put up a data base on our web server with 3 related tables.
- They will be accessed by a limited number of people.
- Each user will have to "log on" with a username and password and only have
access to their records.

- Their will be a main table with two associated tables...
- This is not the application but it is simmilar in structure...

Example:
tblOrganization (Organization name, address, phone, fax, business type, etc)
tblOrg_People (people at the Organization... name, email, phone, title, etc)
tblContact_Log (contact history/log... date of last contact... what
happened)

So in practice a user could log on from home... add an orgaization to their
list... add people... and begin making entries in the log for that
orginaztion

Reports could be run by the office on this data for management... as
required.

Question 1 - Can anyone direct me to sample ASP code for a 3 table internet
based application?
Questionn 2 - Since these are going to be on the net do you have to set the
tables up as "related" in Access?
Question 3 - Or should you just create the Access database and create the 3
tables and them upload them... then create your raw sql statements in ASP
for working with the tables ???

Thanks for any help.
Jan 16 '07 #1
5 2334

"Will" <Wi**@somewhere.comwrote in message
news:45***********************@roadrunner.com...
>- I know enough ASP and Access to be dangerous :)
- I need to put up a data base on our web server with 3 related tables.
- They will be accessed by a limited number of people.
- Each user will have to "log on" with a username and password and only
have access to their records.

- Their will be a main table with two associated tables...
- This is not the application but it is simmilar in structure...

Example:
tblOrganization (Organization name, address, phone, fax, business type,
etc)
tblOrg_People (people at the Organization... name, email, phone, title,
etc)
tblContact_Log (contact history/log... date of last contact... what
happened)

So in practice a user could log on from home... add an orgaization to
their list... add people... and begin making entries in the log for that
orginaztion

Reports could be run by the office on this data for management... as
required.

Question 1 - Can anyone direct me to sample ASP code for a 3 table
internet based application?
Questionn 2 - Since these are going to be on the net do you have to set
the tables up as "related" in Access?
Question 3 - Or should you just create the Access database and create the
3 tables and them upload them... then create your raw sql statements in
ASP for working with the tables ???
Answer 1. What bit do you actually need help with? JOIN queries?
Answer 2. No.
Answer 3. Yes.

--
Mike Brind
Jan 16 '07 #2
Will wrote:
- I know enough ASP and Access to be dangerous :)
- I need to put up a data base on our web server with 3 related
tables.
- They will be accessed by a limited number of people.
<snip>
Question 1 - Can anyone direct me to sample ASP code for a 3 table
internet based application?
Sorry, I can't. There is nothing special about 3 tables as opposed to
1,2,4, or 24 tables
Questionn 2 - Since these are going to be on the net do you have to
set the tables up as "related" in Access?
Whether or not it's on the "net" is irrelevant.
Only create Relationships (foreign keys) between related tables if
1. you want the queries that extract data from these tables to be
optimized
2. you want the database to enforce referential integrity
Question 3 - Or should you just create the Access database and create
the 3 tables and them upload them... then create your raw sql
statements in ASP for working with the tables ???
Huh? As Mike says ... Yes

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jan 16 '07 #3
I'm guessing here but I think he is asking for sample ASP code that
querries 3-tables using SQL

Something like (To see a Companies record with associated People and
assocated Contact Log records

Select tblMain.Company
where Company = Acme Inc

Select tblPeople
where id.tblCompany = id.tblPeople

Select tblContacts
where id.tblCompany = id.tblContacts

Or some such... but as written in ASP.

You can see I'm not the guy to answer this as I don't do SQL or ASP

And how do you write the username and password ASP so the user can only
see their records??

I wouldn't mind having reference sample code on this myself.

Mel

-----------------------
Bob Barrows [MVP] wrote:
Will wrote:
- I know enough ASP and Access to be dangerous :)
- I need to put up a data base on our web server with 3 related
tables.
- They will be accessed by a limited number of people.
<snip>
Question 1 - Can anyone direct me to sample ASP code for a 3 table
internet based application?

Sorry, I can't. There is nothing special about 3 tables as opposed to
1,2,4, or 24 tables
Questionn 2 - Since these are going to be on the net do you have to
set the tables up as "related" in Access?

Whether or not it's on the "net" is irrelevant.
Only create Relationships (foreign keys) between related tables if
1. you want the queries that extract data from these tables to be
optimized
2. you want the database to enforce referential integrity
Question 3 - Or should you just create the Access database and create
the 3 tables and them upload them... then create your raw sql
statements in ASP for working with the tables ???
Huh? As Mike says ... Yes

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jan 16 '07 #4
Thats right... I'm looking for sample ASP and SQL code for working with
multiple tables in an online Access data base... as was just described.

Any help would be good. Thanks.

<My*********@gmail.comwrote in message
news:11*********************@v45g2000cwv.googlegro ups.com...
I'm guessing here but I think he is asking for sample ASP code that
querries 3-tables using SQL

Something like (To see a Companies record with associated People and
assocated Contact Log records

Select tblMain.Company
where Company = Acme Inc

Select tblPeople
where id.tblCompany = id.tblPeople

Select tblContacts
where id.tblCompany = id.tblContacts

Or some such... but as written in ASP.

You can see I'm not the guy to answer this as I don't do SQL or ASP

And how do you write the username and password ASP so the user can only
see their records??

I wouldn't mind having reference sample code on this myself.

Mel

-----------------------
Bob Barrows [MVP] wrote:
>Will wrote:
- I know enough ASP and Access to be dangerous :)
- I need to put up a data base on our web server with 3 related
tables.
- They will be accessed by a limited number of people.
<snip>
Question 1 - Can anyone direct me to sample ASP code for a 3 table
internet based application?

Sorry, I can't. There is nothing special about 3 tables as opposed to
1,2,4, or 24 tables
Questionn 2 - Since these are going to be on the net do you have to
set the tables up as "related" in Access?

Whether or not it's on the "net" is irrelevant.
Only create Relationships (foreign keys) between related tables if
1. you want the queries that extract data from these tables to be
optimized
2. you want the database to enforce referential integrity
Question 3 - Or should you just create the Access database and create
the 3 tables and them upload them... then create your raw sql
statements in ASP for working with the tables ???
Huh? As Mike says ... Yes

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Jan 17 '07 #5
http://www.w3schools.com./sql/default.asp
http://www.w3schools.com./asp/default.asp
http://www.w3schools.com./ado/default.asp
http://msconline.maconstate.edu/tuto...SP/default.htm

"Will" <Wi**@somewhere.comwrote in message
news:45***********************@roadrunner.com...
Thats right... I'm looking for sample ASP and SQL code for working with
multiple tables in an online Access data base... as was just described.

Any help would be good. Thanks.

<My*********@gmail.comwrote in message
news:11*********************@v45g2000cwv.googlegro ups.com...
>I'm guessing here but I think he is asking for sample ASP code that
querries 3-tables using SQL

Something like (To see a Companies record with associated People and
assocated Contact Log records

Select tblMain.Company
where Company = Acme Inc

Select tblPeople
where id.tblCompany = id.tblPeople

Select tblContacts
where id.tblCompany = id.tblContacts

Or some such... but as written in ASP.

You can see I'm not the guy to answer this as I don't do SQL or ASP

And how do you write the username and password ASP so the user can only
see their records??

I wouldn't mind having reference sample code on this myself.

Mel

-----------------------
Bob Barrows [MVP] wrote:
>>Will wrote:
- I know enough ASP and Access to be dangerous :)
- I need to put up a data base on our web server with 3 related
tables.
- They will be accessed by a limited number of people.
<snip>
Question 1 - Can anyone direct me to sample ASP code for a 3 table
internet based application?

Sorry, I can't. There is nothing special about 3 tables as opposed to
1,2,4, or 24 tables

Questionn 2 - Since these are going to be on the net do you have to
set the tables up as "related" in Access?

Whether or not it's on the "net" is irrelevant.
Only create Relationships (foreign keys) between related tables if
1. you want the queries that extract data from these tables to be
optimized
2. you want the database to enforce referential integrity

Question 3 - Or should you just create the Access database and create
the 3 tables and them upload them... then create your raw sql
statements in ASP for working with the tables ???

Huh? As Mike says ... Yes

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


Jan 17 '07 #6

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

Similar topics

0
by: Rich | last post by:
Ok here is what I am doing. I have a <asp:Table object in the html. I am creating the rows and cells dynamically in my codebehind. When I first call the aspx page I create the table based on...
0
by: James | last post by:
Hi, I am running a virtual hosting server. The configuration of server is as follows: Windows 2000 IIS 5.0 All the virtual hosting sites are running as seperate user ie for the site...
7
by: -D- | last post by:
I have some code that I'm trying to add a CSS pseudoclass style for formatting purposes. Here is a snippet of the code I'm trying to add the pseudoclass to: Dim tmpHTML tmpHTML="" tmpHTML =...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
0
by: Kristoffer Arfvidson | last post by:
HI! I have the following javascript events in my normal tables. onMouseOver,onMouseOut and onClick Now, when I try to put this in my asp:tablerow it just gets an error msg that literal text is...
6
by: leonat | last post by:
I have an asp.net webform. When I view the page in the web browser, the html is returned but not any asp code, i.e., " <% ... %> ". This same code works in the "old" asp page BUT NOT in...
0
by: Davey P | last post by:
I have a asp table which I am populating dynamically server side with various other controls such as text boxes, drop down lists and buttons. The controls in this table are filled with data stored...
1
by: Beffmans | last post by:
Hi I work with .net 1.1 and i wanted to know the difference between a html table and a <asp:table>? Which one is better for a consistent layout of your asp.net pages? ch Beffmans
6
by: dragiton | last post by:
ASP Code Redirect Error Hello I recently relaunched a website containing asp code which used to work perfectly. However, after resetting up the SQL DB and trying to work out some site bugs I have...
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: 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: 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: 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
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: 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...

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.