|
本人对这方面非常薄弱,昨天看了一个高手编制的软件,自己弄的时候老是出关于ADODB的错误,请教大家一下: ,下面相关代码:
Public Sub main()
CR = Chr$(13)
stroutdir = CurrentProject.path
Set CN = CurrentProject.Connection
Set recconf = New ADODB.Recordset
Set recsave = New ADODB.Recordset
recconf.Open "Config", CN, adOpenStatic, adLockOptimistic, adCmdTable
recsave.Open "ConfSave", CN, adOpenStatic, adLockOptimistic, adCmdTable
recsave.MoveFirst
recconf.MoveFirst
recconf.Find "Name like " & "'" & recsave![ConfigName] & "'"
If recconf.EOF Or recconf.BOF Then
recconf.MoveFirst
recsave![ConfigName] = recconf![Name]
recsave.Update
recsave.MoveFirst
End If
End Sub
<如果原创者看到此贴,请多原谅>
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|