Asp form connecting to Access

This is a discussion on "Asp form connecting to Access" within the Classic ASP section. This forum, and the thread "Asp form connecting to Access are both part of the Program Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Jan 8th, 2006, 14:21
Junior Member
Join Date: Nov 2005
Age: 55
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Asp form connecting to Access

Dear All
Happy new year

I run the site http://www.easytraveller.gr where I have several asp forms to display the rates of hotels and where someone can make reservation. One of the forms is http://www.easytraveller.gr/andromeda_villas_santorini.asp
In this form I use the recordsets to get info from an access db:
rsRates, rsRooms, rsMonths, rsDays, rsYears, rsNights, rs Persons, rsCountries. In all forms all above is the same except of the rsRates and rsRooms. These 2 recordsets take info from 1 table which is unique for each hotel. When I make the form I specify to the recordset in which table to go and get the info but as you see I have to make about 700 forms. The name of each form is specified in the link button of a page made in flash like: geturl
andromeda_villas_santorini.asp.
What I need to make is: One single form named hotelres.asp with all the recordsets as above where I could specify for every hotel a special code corresponding to the table containing the rates and room types. So I have in the database 1 table for each hotel and 1 form that will be looking for the information to the relevant table according to the information provided in the linking button.
Thank for every one who can help
Best regards
Tolis
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jan 8th, 2006, 14:41
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Asp form connecting to Access

could you not:
  • Have a drop down box, and loop through the hotels you choose from, leaving their ID as the value of that selection...
  • say the user clicked the first item in the dropdown, (the id being 1), when the form is submitted, you select the rate from the second table (finding it with the ID from that dropdown)
from there it should be straightforward...

if you need additional help feel free to ask..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jan 8th, 2006, 18:05
Junior Member
Join Date: Nov 2005
Age: 55
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Asp form connecting to Access

Thank you Benbramz

Sorry but for my knowledge level this is not clear. If you can kame it more clear I will very much appreciate, or if someone has any other idea?

Best regards
Tolis
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jan 8th, 2006, 22:22
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Asp form connecting to Access

hey thats no problem...anyway, i was wrong about what you needed....

what would be better is:

you have one page, instead of having *andromeda_villas_santorini.asp* and 100's like it, you have showresort.asp.

however, we will use somthing called a querystring. these are the things that usualy look like id=76637 etc. To start these off, we have a ?. so showresort.asp?id=76637

follow so far? hope so

anyway, what we will do is select the information from your database which has the resorts in, by using this quesrysting (using ID as the matching ID of the record)

so, to start
Code: Select all
<%
recordID = request.querytring("ID")
if recordID  > "" then
'if there was an ID, then we would carry out our prosessing here..
else
'this is what we do if there is not an ID on the link...
response.write("error!")
end if
%>
then on our sql statment we would get the script to select the records from the database which has the ID in the querystring...
recordset.Open "SELECT * FROM tablename where ID=" & recordID
see?

if your looking at the screen like , or even then add your file in a zip archive and ill be happy to edit it accordingly... or post up the code of your file if thats easier...

Last edited by benbramz; Jan 10th, 2006 at 14:30.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jan 10th, 2006, 10:02
Junior Member
Join Date: Nov 2005
Age: 55
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Asp form connecting to Access

Thank you Ben
Your help was great
Tolis
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jan 10th, 2006, 14:32
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Asp form connecting to Access

glad i was of some use!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
asp, form, connecting, access

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP Multi users Access to Microsoft Access ish Classic ASP 0 Apr 26th, 2007 20:05
Access open form djme Databases 0 Oct 14th, 2006 16:34
connecting to CSV file madhuri.t Classic ASP 0 Jul 10th, 2006 13:50
Access Form Event oldmanmedic Databases 1 Jun 27th, 2006 00:01
ASP form to access db in fpdb folder JED01 Classic ASP 3 Mar 27th, 2006 16:54


All times are GMT. The time now is 14:39.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42