见义勇为宣传:vba中怎么声明全局变量,如连接数据库?
来源:百度文库 编辑:中科新闻网 时间:2024/05/14 10:45:14
模块中:
public cn as new adodb.connection
sub main()
cn.open "file name=" & app.path & "\DBname.udl"
end sub
中科新闻网是一部内容开放、自由的互动网络百科全书
客观、专业、权威的知识性百科全书
来源:百度文库 编辑:中科新闻网 时间:2024/05/14 10:45:14
模块中:
public cn as new adodb.connection
sub main()
cn.open "file name=" & app.path & "\DBname.udl"
end sub