Dim Dbs as DataBase
Dim rstTmp as RecordSet
Dim strSql as String
Dim strGzddmc as string '取得查询结果
Set Dbs=CurrentDB
strSQL = "select Gzddmc from 工作地点 where gzdd_ID = 工作地点.Gzdd_ID"
set rstTmp=Dbs.OpenRecordSet(strSql,Dbopensnapshot)
sGzddmc=rstTmp!Gzddmc