Asp classic 基于ma-access数据库的经典asp中的SQL查询

Asp classic 基于ma-access数据库的经典asp中的SQL查询,asp-classic,Asp Classic,下面是select查询语句。。我得到的错误如下: ODBC驱动程序的Microsoft OLE DB提供程序错误“80040e14” FROM子句中的[Microsoft][ODBC Microsoft Access驱动程序]语法错误 您正在从wp执行操作,内部联接=>必须删除, 在更好地回顾之后,你会有更多的情况是你在暗示,而你不应该暗示。我试着指出一些,但你应该回顾一下这个问题 您需要删除以下项: 作为t,在wp.wp_id=t.wp_id上 此外,在您按Rec_dt订购后,您有: ,内部联

下面是select查询语句。。我得到的错误如下:

ODBC驱动程序的Microsoft OLE DB提供程序错误“80040e14” FROM子句中的[Microsoft][ODBC Microsoft Access驱动程序]语法错误

您正在从wp执行操作,内部联接=>必须删除, 在更好地回顾之后,你会有更多的情况是你在暗示,而你不应该暗示。我试着指出一些,但你应该回顾一下这个问题

您需要删除以下项: 作为t,在wp.wp_id=t.wp_id上

此外,在您按Rec_dt订购后,您有: ,内部联接选择工具测试,来自估算的工作包id,打开 在内部联接之前的和在上的之前的都需要删除。此外,在最后一行和之前的行中,应删除逗号2

最后,您的最后一个内部联接不应该在它所在的位置,但我仍然没有得出结论,您是否真的希望在那里进行内部联接,或者是否应该将其计算为某种联合。

您在wp中执行的操作,内部联接=>必须删除, 在更好地回顾之后,你会有更多的情况是你在暗示,而你不应该暗示。我试着指出一些,但你应该回顾一下这个问题

您需要删除以下项: 作为t,在wp.wp_id=t.wp_id上

此外,在您按Rec_dt订购后,您有: ,内部联接选择工具测试,来自估算的工作包id,打开 在内部联接之前的和在上的之前的都需要删除。此外,在最后一行和之前的行中,应删除逗号2

最后,你的最后一个内部连接不应该在它所在的位置,但我仍然没有得出结论,你是真的想要在那里进行内部连接,还是应该进行某种形式的联合

Dim DataConn
Set DataConn = Server.CreateObject("ADODB.Connection")
DataConn.Open "Driver={Driver do Microsoft Access (*.mdb)}; DBQ="& Server.Mappath("db\wsmt.mdb") & ";pwd=openreach;"

Dim Recordset_report
Set Recordset_report = Server.CreateObject("ADODB.Recordset")

Dim sRet

if Request.form("submit1")<>"" then

    Recordset_report.Open "Select WP.CR_No as ""Cr No"", WP.WP_ID as""WP ID"", WP_Name as ""WP Name"","&_
" iif(isnull(ow1),' ',ow1+';')+' '+' '+iif(isnull(ow2),' ',ow2+';')+' '+' '+iif(isnull(ow3),' ',ow3+';')+' '+' '+iif(isnull(ow4),' ',ow4+';')+' '+' '+iif(isnull(ow5),' ',ow5) as ""Owner(s)"","&_
"Type as ""WP Type"", Release, Area, Rec_dt as ""Date Started"", Rec_from as ""Requirement Owner"","&_
"TCD,Perc_comp as ""% Completed"", Complexity, Status,Act_close as ""Actual Closed Date"" from wp, "&_

" inner join ( select wp_id,owner1,(select fullname from userinfo where userid=a.owner1) as ow1,owner2,"&_
" (select fullname from userinfo where userid=a.owner2) as ow2,owner3,"&_
" (select fullname from userinfo where userid=a.owner3) as ow3,owner4,"&_
" (select fullname from userinfo where userid=a.owner4) as ow4,owner5,"&_
" (select fullname from userinfo where userid=a.owner5) as ow5 from allocation a) as t,"&_
" on (wp.wp_id = t.wp_id) where Rec_dt >= #"&Request.form("from")&"# and "&_
" Rec_dt <= #"&Request.form("to")&"#  and not WP.Disable order by Rec_dt, "&_ 

" inner join (select tool_est,wp_id from estimation), "&_
" on (wp.wp_id = Estimation.wp_id) where Rec_dt >= #"&Request.form("from")&"# and ,"&_
" Rec_dt <= #"&Request.form("to")&"#  and not WP.Disable order by Rec_dt ", DataConn