Set rs = CurrentDb.OpenRecordset(sqlIndexTable)
With rs
'CHECK: recordset is empty
If .RecordCount = 0 Then
Call MsgBox( _
"The index table, " & sqlIndexTable & " is empty." & vbNewLine & _
"Plesae define instructions for the update and try again." _
, vbOKOnly _
, "Index Table Empty" _
)
GoTo Exit_Handler
End If
.MoveFirst
Do While Not .EOF
Select Case LCase(!Action)
Case "copyobject"
Call DoCmd.CopyObject(sDestDatabase, !ObjectName, !ObjectType, !ObjectName)
Call WriteToLog( _
"Copied Object '" & !ObjectName & "' (Type " & !ObjectType & ") to " & sDestDatabase _
)
End Select
.MoveNext
Loop
End With
|