标题: [求助]在VBA中使用SQL语句时出错 [打印本页] 作者: 好学 时间: 2006-8-20 01:31 标题: [求助]在VBA中使用SQL语句时出错 Private Sub Form_Load()
Dim strSQL As String
strSQL ="Select 数值, DCount([数值],"码表","数值<" & [数值])+1 AS 排名 from 码表" _
& ORDER BY DCount([数值],"码表","数值<" & [数值])+1;
Me!要求结果_子窗体.Form.RecordSource = strSQL
End Sub
上面的提示出错:缺少语句结束! 请问我错在那里呢?作者: fan0217 时间: 2006-8-20 02:05
strSQL ="Select 数值, DCount([数值],"码表","数值<" & [数值])+1 AS 排名 from 码表" _
& ORDER BY DCount([数值],"码表","数值<" & [数值])+1;