当前位置:网站首页>vb连接Access数据库自定义
vb连接Access数据库自定义
2022-07-23 15:46:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
Public cn As New ADODB.Connection Public rs As New ADODB.Recordset
‘打开数据库连接 Public Sub OpenConn() Set cn = New ADODB.Connection Set rs = New ADODB.Recordset cn.CursorLocation = adUseClient cn.Open “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=” & App.Path & “/data/XXX.mdb;Jet OLEDB:Database Password=;Persist Security Info=False;” End Sub ‘关闭数据库连接 Public Sub CloseConn() rs.Close Set rs = Nothing cn.Close Set cn = Nothing End Sub
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/126557.html原文链接:https://javaforall.cn
边栏推荐
- rust求数组中最大值
- Page return update
- go语言中的内存对齐是如何优化程序效率的?
- LDAP统一认证服务解决方案[通俗易懂]
- Use of keyup.native in El input
- Analyze the CPU surge of an RFID tag system written by.Net
- Do you still have certificates to participate in the open source community?
- RS232 DB9 serial port device
- 作为一名后台开发人员,你必须知道的两种过滤器
- Test and development experience
猜你喜欢
随机推荐
卡方分布、方差分析
Mongodb group one piece of data in each group
MySQL field modification
封玩家IP和机器码以及解开被封的教程
LDAP unified authentication service solution [easy to understand]
MPU9250传感器
“如今,99.9% 以上的代码都是垃圾!”
Dyn keyword in rust
MySQL uses commands to export and import in Windows
gom及gee架设黑屏的原因以及个别装备地图不显示怎么办?
RS232 DB9 serial port device
Une erreur s'est produite lors de la configuration du login du moteur Gom: aucun correctif requis n'a été trouvé!
测试开发面经
MySQL六十六问,两万字+五十图详解含(答案解析)
c语言--通讯录的实现与ScreenToGif
TP & smart use diary
【215】gin框架连接mysql数据库
MySQL执行Alter table xx add column报Duplicate entry错误
Trust counts the number of occurrences of words in the file
IDEA这些既好用又好玩的三十多个宝贝插件你还不知道吗?「建议收藏」









