标题:【求助】帮忙给转换下代码!
只看楼主
manman1992
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2012-3-13
 问题点数:0 回复次数:1 
【求助】帮忙给转换下代码!
Private Sub Command3_Click()
 Dim sql As String, mlink As String, mpath As String, mzy As String
    mpath = App.Path
    If Right(mpath, 1) <> "\" Then App.Path = mpath + "\"
    mzy = InputBox$("请输入房号", "查找窗")
    sql = "Select * from 散客帐务查询 where 房号='" & mzy & "'"
    mlink = "Provider=Microsoft.Jet.OLEDB.3.51;"
    mlink = mlink + "Persist Security Info=False;"
    mlink = mlink + "Data Source=" + App.Path + "客人情况登记.mdb"
    Adodc1.ConnectionString = mlink
    = adCmdUnknown
    Adodc1.RecordSource = sql
    Adodc1.Refresh
    If Adodc1.Recordset.EOF Then
    MsgBox "无此人!", , "提示"
    End If
End Sub
搜索更多相关主题的帖子: sql 查询 False where 
2012-04-17 11:17
yhj8848
Rank: 1
等 级:新手上路
帖 子:7
专家分:7
注 册:2011-12-18
得分:0 
兄弟,网上有在线的代码转换工具啊,http://www.,到这里去自己转吧
2012-04-21 09:40



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




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

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