设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

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

[其它] ACCESS导入SQL2000 前端程序无法使用

[复制链接]
跳转到指定楼层
1#
发表于 2006-9-18 01:56:00 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
最近把ACCESS 2000 编写的程序 后端表导入SQL 2000, 但是前端ACCESS 界面的程序 无法使用,希望高手指点~~
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享 分享淘帖 订阅订阅
2#
 楼主| 发表于 2006-9-18 01:58:00 | 只看该作者
如以下一段程序 报编译错误 急死拉

Dim db As Database, qry, qry1 As QueryDef
Dim dbs As Database
Dim db1 As Database
Dim rst, rst1 As Recordset
Dim rst2, rst3, rst4, rst5 As Recordset

Dim strsql As String

Dim tmp, temp, file As Variant
Dim files As Variant
Dim i, j, k, m, n, P As Integer
Dim count As Integer
Dim tbtmp As TableDef
Dim fvalue As String
Dim r, s  As Integer
Dim a1, a2, a3, a6 As Variant
Dim a4, a5 As Single
Dim W1, w2, w3 As Integer
Dim b As Integer
Dim D1, D2, d3, d4, d5, d6 As Single
Dim test As String
Dim r1, r2, r3, r4, r5 As Variant
Dim d11 As Long
Dim j1, j2 As Integer
Dim x As Integer
Dim Y As String
Dim a As String
Dim T As Integer
Dim strQuote As String
Dim c As String
Dim T1, T2, T3, T4, T5, t6, t7, t8, t9, t10, t11, t12 As Variant
Dim mn As Boolean
Dim t100 As Integer

Dim q As Integer
Dim c1 As Integer
Dim c2 As Integer
Dim s1 As String
Dim Q1, Q2, Q3 As Integer
Dim Check As Integer
Dim Temp1 As Integer
Dim strMsg As String

Dim strInput As String

c = Me.MDDRef


T2 = 0
strQuote = Chr(34)

Set db = CurrentDb
strsql = "SELECT [mddref]  FROM [product]  WHERE ([mddref]="
',[mddref],[supplier no],[cname],[unit price],[order quantity],[order amount],[color],[supplier ref],[address],[chname],[contract date],[real stock],[process stock],[security stock]

strsql = strsql & Chr(34) & c & Chr(34) & ");"
Set qry1 = db.CreateQueryDef("", strsql)
Set rst = qry1.OpenRecordset
rst.Requery


r = rst.RecordCount

If r = 0 Then
MsgBox "congratulation!!!,you can use the product ref!!!"
Else
MsgBox "lease change to another ref,it's existed!!!"

Exit Sub
End If

rst.Close
Set db = Nothing

3#
发表于 2006-9-18 04:22:00 | 只看该作者
以前能编译吗?用ACCESS自带的升迁向导试试

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-15 01:33 , Processed in 0.108090 second(s), 26 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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