jxawgyl 发表于 2008-6-23 09:50

请各位帮我看一下(查询)

我的SQL语句是:
docname_sql = "select * from dbo.AdviceListView where exists (select * from doctor where AdviceListView.doccode=doctor.doccode and docname='" & _
  DataCombo2.BoundText & "'" & " )" & "and executeoffice= 4008 order by intime desc"
这样对吗?但是我运行不成功,请帮我看一下。

jxyga111 发表于 2008-6-23 10:14

你那")" 看看

jxawgyl 发表于 2008-6-23 11:17

谢了,已经搞好。

页: [1]

编程论坛