标题:请帮忙看看这个程序哪 里错了 啊?
只看楼主
紫露
Rank: 1
等 级:新手上路
帖 子:14
专家分:0
注 册:2012-12-28
结帖率:100%
 问题点数:0 回复次数:0 
请帮忙看看这个程序哪 里错了 啊?
Private Sub search_material(ByVal s As String)
Set rstemp = New adodb.Recordset
sqlconnection = "provider=microsoft.jet.oledb.4.0;data source=" & App.Path & "\jxc.mdb"
If Len(Trim(s)) > 0 Then
      rstemp.Open "select * from WS A drawing num apply where name='" & Trim(s) & "'", sqlconnection, adOpenKeyset
      If rstemp.RecordCount = 1 Then
         Text2.Text = rstemp.Fields("drawing number")
      End If
Else
   rstemp.Open "select * from WS A drawing num apply", cnn, adOpenDynamic
   If rstemp.RecordCount > 0 Then
      rstemp.MoveFirst
      Do While Not rstemp.EOF
         Combo1.AddItem rstemp.Fields("drawing number")
         rstemp.MoveNext
         If rstemp.EOF Then
         End If
      Loop
   End If
End If
rstemp.Close
Set rstemp = Nothing
End Sub
请帮忙看看这个程序哪 里错了 啊?
搜索更多相关主题的帖子: drawing number source where 
2013-03-07 16:32



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-400012-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.071089 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved