End Sub
Private Sub Command11_Click()
On Error GoTo Err_Command11_Click
'尾记录
ReadPic (PicCount)
Image0.Picture = PicPathName
TNO = CurrRecNo & " of " & PicCount
Function ReadPic(PicNo As Integer)
Dim RST As New ADODB.Recordset, CNN As New ADODB.Connection
Dim FileData() As Byte, FileNo As Long, FileSize As Long
'ole控件的名字.Action = acOLEActivate
If PicDir = "" Then
Set CNN = CurrentProject.Connection
Set RST = CNN.Execute("exec Fl_系统记忆变量 '图象目录' ")
PicDir = RST!记忆值
RST.Close
Set RST = Nothing
MsgBox "ERROR"
End If