Login | |
|
 |
Re: MS Access - 3/2/2005 11:21:38 AM
|
|
 |
|
| |
token
Posts: 1917
Score: 0
Joined: 1/14/2005
From:
Status: offline
|
First of all, if it is actually *huge*, I would suggest you use SQL; let it be MS SQL, mySQL, IBM DB2, essBase, Informix, you name it. I have been using special character without any problems (most of the time if I remembered correctly) and there are usually ways to deal with that. If you can post your codes so others can get a chance to look at it, perhaps someone will think of something that might help. Because the nature of the Database, you might also want to let us know the field type (eg: string, number, date etc) so that it's easier for any of us to go through your code.
|
|
| |
|
|
|
 |
Re: MS Access - 3/3/2005 5:24:01 AM
|
|
 |
|
| |
zahid_a
Posts: 14
Score: 0
Joined: 2/16/2005
From: Canada
Status: offline
|
well....the database is really huge...close to 4000 records, but due to financials the only viable option for the time being is to proceed with MS Access. i have been testing the database and the error only pops up when searched for " ' " apostrophe. regarding the field type: Folder = text See also = text File summary = memo Subcontents = memo This is the exact error as it appears on the screen: MSDataShape error '80040e14' Data shape command text contains a syntax error at or near position 220 in the command. The text near the error is: " folder} AS Test RELATE folder to folder)". <% OPTION EXPLICIT %> <!-- METADATA TYPE = "typelib" FILE = "C:\Program Files\Common Files\System\ado\msado15.dll" --> <HTML> <HEAD> <TITLE> TRYING THE SHAPE & APPEND </TITLE> </HEAD> <BODY> <% Dim strSQL, objRS, objChild, strConnection, strFolder, inti inti = 0 strFolder = Request.Form("FOLDER") strConnection = "Provider=MSDataShape;dsn=vertical;database=vertical final.mdb" strSQL = "SHAPE { SELECT folder, FileSummary, SeeAlso FROM folder WHERE folder LIKE '%" & strFolder & "%' ORDER BY folder}" & _ "APPEND ({ SELECT folder, subcontent FROM subcontents WHERE folder LIKE '%" & strFolder & "%' ORDER BY folder} AS Test RELATE folder to folder)" Set objRS = Server.CreateObject("ADODB.Recordset") objRS.Open strSQL, strConnection Set objChild = Server.CreateObject("ADODB.Recordset") objChild.Open "subcontents", strConnection, adOpenStatic, adLockReadOnly, adCmdTable While Not objRS.EOF Response.Write "<B>" & "Folder: " & "</B>" & objRS("folder") & "<BR>" Response.Write "<B>" & "File Summary: " & "</b>" & objRS("FileSummary") & "<BR>" Response.Write "<B>" & "See Also: " & "</b>" & objRS("SeeAlso") & "<BR>" Response.Write "<B>" & "Subcontents: " & "</b>" & "<BR>" Set objChild = objRS.Fields("Test").Value While Not objChild.EOF Response.Write " " & " " & " " & " " & objChild("subcontent") Response.Write "<br>" objChild.MoveNext Wend Response.Write "<br>" Response.Write "<hr>" inti = inti + 1 objRS.MoveNext Wend Response.Write "There are " & inti & " records on this page." objRS.Close Set objRS = Nothing %> </BODY> </HTML>
|
|
| |
|
|
|
|
|