设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

返回列表 发新帖
查看: 1711|回复: 1
打印 上一主题 下一主题

[ADO/DAO] ADO存储过程的查询名称?

[复制链接]
1#
发表于 2002-10-5 19:33:00 | 显示全部楼层
dim my_usp as string
Dim rs As New ADODB.Recordset
Dim cmd As New ADODB.Command
Dim user As new ADODB.Parameter

my_usp = "您的存儲過程名"
With cmd
  .ActiveConnection = currentproject.connection
  .CommandText = my_usp
  .CommandType = adCmdStoredProc
End With
set user = cmd.createparameter(,adbstr,adparainput)
cmd.parameters.append user
   rs = comm.execute
'調用完後
set user = nothing
set cmd = nothing
set rs = nothing
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

GMT+8, 2024-5-16 07:10 , Processed in 0.103322 second(s), 23 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表