Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A newbie attempting to connect to .mdb..help. Please? 2

Status
Not open for further replies.

danielh68

Technical User
Jul 31, 2001
431
US
Hi

I'm trying to learn how to connect to an Access database. I have created a database in Access, uploaded to the database folder, logged into the site control panal, clicked database tools and created a new ODBC connection.

As a side note, I have been following this tutorial at It's fine, until he gets to the control panel under ODBS Data Source Administrator.

My Question is this:

1. Since he's connecting to PWS do I need to do this? Or, does it generate when I creating a database through my ISP's Database control panel.

Or, can someone point me to a more approprate tutorial?

Thanks,
dan
 
I'm confused
Response.Write(album & " = " & oRS("FolderName").Value)
FolderName is a field in the database correct.
From the way I'm reading it it should return anything that is in the record. [bomb]
I may not get it the 1st or 2nd time,
but how sweet that 15th time can be.
admin@onpntwebdesigns.com
 
Yes, hmm... Maybe it's because I have two tables that I'm pulling data from? What's the correct syntax for calling data from a certain field?

oRS("tblAlbum.FolderName").Value ??

I just want it to return the data in that one field.

Thanks much!

Elizabeth :)
 
Nevermind, I just figured it out on my own. It was my SQL statement. I didn't need the UNION in there...just needed it like:

SELECT * FROM tblAlbum, tblPhoto WHERE FolderName = '" & album & "'

Now I see the data I want.

Thanks again for all your help!

Elizabeth :)
 
This is how I'm reading this from everything

take out the .value
Response.Write(album & " = " & oRS("FolderName"))
this says write whatever is in the value of the variable album and write the recordset FolderName which is everything in the record set. all values!

why do you union tblPhoto when you don't use it?
what you are getting for a result is correct rom how I read it, but I don't see the DB so I could be wrong.

yes the way you stated it the second time makes more sense to me.
oRS("tblAlbum.FolderName")
this asks for jsut the FolderName in the tblAlbum



[bomb]
I may not get it the 1st or 2nd time,
but how sweet that 15th time can be.
admin@onpntwebdesigns.com
 
glad I could help both of you out.
thanks for the star [bomb]
I may not get it the 1st or 2nd time,
but how sweet that 15th time can be.
admin@onpntwebdesigns.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top