ASP & Access Outer Joins
I am trying to work on a little application that will look into three tables,
(tblTasks - taskID, taskTitle)
(tblObjectives - objID, taskID, objTitle)
(tblResults - userID, objID, objResult)
Display a drop down list of tasks from tblTasks, when a user selects a task, it will display objectives (with checkboxes against each objective) from tblObjectives for that task.
User can then tick the objectives that have been completed and submit form which will update tblResults. will need help with both ASP and Access. I can email code and table structure offline.
View Replies
ADVERTISEMENT
I am using access dbs and want to do an inner join on tables in two different dbs how do I do it?
View Replies
View Related
i m getting error when run this query..can we form such query?
strSQL = "SELECT distinct y.company_id,y.company_name,z.location_id,z.locati on FROM appointment_detail AS x INNER JOIN company AS y ON x.company_id = y.company_id AND appointment_detail AS x INNER JOIN location_table AS Z ON x.location_id=z.location_id ORDER BY y.company_name,z.location"
error////////////
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression ''.
/sd/jobsearchasp2.asp, line 18
View Replies
View Related
how can i join two tables and retrieve all information for a particular customer where the item does not appear in the union.
Basically if i join table 1 and table 2 items both exist then i don't want to show them. I want to show the items that are exist in table 1 and not in table2.
View Replies
View Related
I have some problems with my recordset in asp (ado). Due to some JOINS in my SQL statement i need to get the data with both, the tables name and the fields name.
My SQL String is this one:
SELECT * FROM tblObjekt INNER JOIN tblRegion ON tblObjekt.fk_Region=tblRegion.Id INNER JOIN tblOrt ON tblObjekt.fk_Ort=tblOrt.Id WHERE ObjektNr='6009056841' AND fk_Region='1'
But when I try this
rsData(1, 0).Fields.Item("tblObjekt.Id").Value
it just doesn't work.
View Replies
View Related
I am working with two databases. One is dockets which holds all kinds of information about upcoming legal hearings. The second one is additional parties which holds additional records related to the dockets data table.
Not all dockets have additional parties so when I need to display information about a case I may or may not need records from there so I am using a left outer join.
It works perfectly EXCEPT for one small matter. The field that I am joining on (petitionCaseNumber) is turning up empty after the join.
Below is the join.
varSQL = "SELECT * FROM Dockets LEFT OUTER JOIN additionalParties ON Dockets.petitionCaseNumber = additionalParties.petitionCaseNumber WHERE dockets.petitionCaseNumber = '" & numberIn &"'"
When I say something like response.write rst("petitionCaseNumber") I get nothing if I say response.write rst("dockets.petitionCaseNumber") I get an error.
How do I refer to this field or how do I get this field to contain the case number?
View Replies
View Related
SELECT Table1.*, Table2.Loc_Name, Table3.Inst_Name, Table4.Prg_Name
FROM [Table1], [Table2] , [Table3], [Table4]
WHERE Table1.C_Id = 2001
AND Table2.L_Id = Table1.L_Id
AND Table3.I_Id = Table1.I_Id
AND Table4.F_Id = Table1.F_Id
ORDER by DT desc
I need to do an outer join instead of an inner join
because their could be no values for Table2, Table3, Table4
I still want a value returned and an inner join does not return any values for this query.
View Replies
View Related
I'm trying to pull a value onto my web page from a joining table and all I keep getting is the id instead of the actual value. table_status has has sid and status. for some reason I'm getting the id number instead of the value of the status. this is my error message when I try to join tables. Code:
View Replies
View Related
I would like to create a recordset which joins 3 tables using the column 'productid' as the key column throughout. I want all the columns from all three tables with a where clause that says category = beau and subcategory = mirror. I have tried numerous things but I get one error message after another. Code:
View Replies
View Related
I have a Development server that is running Win2k, IIS 5.0, and ASP enabled. I am trying to gain access to an Access 2000 DB located on a file server within my domain. I'm pretty sure I have all the correct permissions set, but I am having problems when trying to access the DB.
The error is similar to:
The Microsoft Jet Database engine cannot open the file '******'. It is already opened exclusively by another user, or you need permission to view its data.
I'm looking for ways to fix this... Microsoft suggests turning off the ability for IIS to sync passwords. Unfortunately, this is not a viable solution for me.
Is it possible to create a new virtual server that is a share to my file server? Put my ASP and MDB file in there and have it work? Anyone have any other ideas?
View Replies
View Related
I'm working on a site that inserts records into an Access database and Access assigns an auto-incrementing id for the record. How can I quickly figure out what id that was just created? I seem to remember there being a function for this....
View Replies
View Related
I want to move my only window shosted client to linux. The site they have access a Microsoft Access database with the below code but i can't get it to work under Linux.
<code>Dim MM_connPang_STRING
'MM_connPang_STRING = "dsn=pangDSN"
MM_connPang_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:clientdatabasepangDB.mdb"</code>
View Replies
View Related
I'm trying to access a table in a MS Access database using ASP but the name of the table is causing me some trouble. The problem is the table name has a space in it eg, "My Table".
If i try and access it using a query "SELECT * FROM My News", it says i cant find table "My". If i remove the space from the name (to MyTable) it works fine. But the trouble is its a customers database and i cant easily rename it because its linked to other tables and db's.
How can i access a table with a space in its name? I've tried "SELECT * FROM My_News" but that doesnt work either.
View Replies
View Related
I have an ASP page needs to access a remote MS Access2000 database, I got error "The Microsoft Jet database engine cannot open the file 'F:Collect.mdb'. It is already opened exclusively by another user, or you need permission to view its data. ".
The 'F:' is a mapped drive from remote machine where the access database loactes. If I copy the database back to local box, no problem.
View Replies
View Related
I'm looking to make an online multiplayer game which will utilize Access Database... basically I require thousands of people writing and reading from the same database... I was wondering if this is possible for that... or is mdb file restricted to 1 person at a time...
If it is limited what would you suggest as the best way to control an interactive online environment? .txt files possibly?
View Replies
View Related
What is this all about? Generally I run against SQL Server but now I have to use access. The query I want to run is a simple double join
SELECT tblArtists.*,tblGenres.name AS genreName,tblPages.pageId
FROM (tblArtists
INNER JOIN tblGenres ON tblArtists.genreId = tblGenres.genreId)
LEFT JOIN tblPages ON tblArtists.artistId = tblPages.artistId
ORDER BY surName ASC, firstName ASC
Now If I run this question in access against the database it accurateley returns two posts. BUT When I paste the same query into an asp document and runs it with a fileDSN against the same database it returns nothing!? Is this some kind of joke from Microsoft?
View Replies
View Related
I have an Access DB which contains couple of link tables. All these tables are from different databases. So each one has it's own database password. Since there is no way to save the password during the DSN creation. Then you need to manually type in the password each first time when open the table.
This causes the problem in ASP code during run a query. Since the table cannot be accessed due to the password protection. Is there any statement than can open a table and meanwhile pass the password in? Does anyone experienced with the similar situation?
View Replies
View Related
I generate my codes using a generator. My problem is that I can not write into my Access database. I had gone to tools to allow access permission . still nothing.
View Replies
View Related
I have a MS Access file that consits of 500 movie titles, I already upload this file onto Brinkster.com, but I don't know to code this into ASP or PHP so I can have an on-line database. Please help me code this Access file into an ASP or PHP file.
View Replies
View Related
I have a field in my Access db which is used to put a category against a company, rather like Yellow Pages. The categories are held in another table in the same db. The Category field in my companies table is a look up field using this syntax
SELECT [categories].[ID], [categories].[Category] FROM categories;
My problem is when I want to list a company and do a response.write rs("Category") I get the ID relating to that category rather the description. How can I get the description instead?
View Replies
View Related
I am using Access and ASP.I am just trying stuff out.I created an access database and put some validation in access on some fields.
I created an ASP program to insert into my database.
When I try to insert a record that validates OK with access rules all is fine.
Then I type input that violates the access rules; I hoped to get a helpful message back.
All I got was my message saying an error had occured and it was Error number 0 and native error 2097228.
As I was testing I know it is due to failing a validation in access.
I am learning I wanted to look up this native error, I cannot find it in access help or internet searches where would I look for native errors please?
I know I need to validate client side that is not the issue it is understanding native errors!
View Replies
View Related
I'm trying to search the Access database using 3 fields and I think there's a problem in my If statement...pls check it out for me.....I'm using ASP...this is what I'm trying to do:
If Request.Form("txtUser_Id") = "User_Id" and Request.Form("txtWeekNo") = "WeekNo" Then
strSQL = "SELECT (MSD + Methods + Analysis + Architectures + Models + Studio + Elective1 + Elective2 + Elective3) AS PersonTotals, FirstName, LastName, WeekNo, Semester, StudioTeamName FROM tblpersons"
strSQL = strSQL & " WHERE Semester=" & Request.Form("DaInBox")
'strSQL = strSQL & "WHERE Semester ='" & strSemester & "'"
End If
View Replies
View Related
I'm planning to change my database from MS Access to an SQL database. So, what do i have to change in my code for that?Is it possible to have multiple tables in SQL which are linked to each other?Are there pro's and contra's ?
View Replies
View Related
I made a little app that selects data from a database depending whether there is a NO, in the YES/NO column. The data is exported to a txt file with aso. What i'm wondering is, is after the data has been downloaded to that txt file, how to write to the database saying all they were marked NO, go to YES.
View Replies
View Related
I have never dealt with XML before, So this is way out of my realms...
I am trying to get a XML feed into an Access Database..
The XML source can be found here:-
but as you can see.. there is another problem.. the file is in a .GZ format.. so i need some way of Un-Zipping it onto my web host, and then importing the XML data into the database..
Ive looked around, and the only information i can find is un-zipping it onto a local machine, and then uploading the XML file.. but that's not practical.. i don't want my web page to be dependant on my PC at home being logged on...
As for the import of the XML to Access... that's another black hole there.. ive never done anything like this before..
View Replies
View Related
I'm still very much on the learning curve when it comes to writing ASPs and have always used Access for my db. A colleague in work has told me that I should never use access on a commercial site where I'm likely to get a lot of traffic. Is this correct, is Access totally unsuitable?
View Replies
View Related
Alright, I am opening an Access XP database via ASP. One of the fields is a numerical field, and I would like to force it to display the number + 1 digit to the right of the decimal. For some reason it is only displaying digits to the left.
In Design View, my Access Table (names 'arlist') looks like this:
Field Name: level, Data Type: Number, Field Size: Integer, Format: Fixed, Deciaml Places: 1
My SQL Statement: SELECT * FROM arlist;
Then the VBScript I'm using to access the table looks like this:
Response.Write"<TD align=""right"" bgcolor=""" & strBG & """ width=""10%""><P class=""body"">" & rsDC.Fields("level") & "</TD>" & vbCRLF
I am opening the table via ADO Statically with a Read-Only pointer because the page just displays the contents of the table. I've tried everything I can think of to preserve the decimal place. If I view the table in Access, the decimal places are correct.
View Replies
View Related
I'm trying to connect an access database to a asp page, but whatever i do, it just doesn't work. Code:
View Replies
View Related
How to I get MS Access to return unicode string in ASP? It returns?
View Replies
View Related
I have got a display page where im displaying Company ID Company Names with Their Products Added
The data im extracting from the access DB
The thing is as im adding a lot of products for a each company so im adding them in a loop in my Products table
so each time i add a new product with the particular company id the the id gets repated as its in the loop as well and thus each time a new record is being genarated
what i want to achieve is that on a display page where i want to see the data that has been added i just want to get the Company ID not repated and with all the products related to that company id and then the next Id with the products
like ive got 20 products for a company ID 1 so i just want to show that company ID once and with all the 20 products and then go on for the next company ID
how will u do this
do i have to use the distinct thing or do i have to open another recordset and match the id
View Replies
View Related
how can i provide the password for the database access using asp
note that i'm using the recordset object
set dbrs=server.createObject("ADODB.Recordset")
dbrs.open "select *from table_name ","DSN",0,3
and i don't like 2 use the connection object
View Replies
View Related
When just loop the data coming from the table, I see the ID I want updated, so I know it's pulling the data from the table. I can also see that the data from the form is coming across. Can someone look at this and tell me what I'm doing wrong or post a sample for me to look at? Code:
View Replies
View Related
I am trying to create a SIMPLE webpage which will just register the user for a service.
I have a create the database in MS Access with fields fname, lname and email but I don't know what the HTML code will look like in order to connect 1) the HTML page to the Database and 2) the tag fields to the appropriate fields of the database.
I have spent a lot of days searching around the Internet to find this extra simple thing, but unfortunately everything that I found was either too difficult or inappropriate (in means of what the author wanted).
I just want to create a webpage which will add records to the table 'user' of the 'registration' database.
View Replies
View Related