Professional Documents
Culture Documents
Case vbYes
delTable = True 'if the table is to be replace set the tag c
orrespondingly
Case vbNo
Exit Sub 'stop if table isn't to be replaced
End Select
End If
Next i
If delTable Then 'if tag is set to replace, delete table
DoCmd.DeleteObject acTable, NewTableName
End If
DoCmd.Hourglass True 'set the hourglass-cursor to show busy-mode...
success = tb.Open(dbfFileName) 'open the dbf
If Not success Then
MsgBox "*.dbf can't be read! Maybe missing or disrupted!", vbCritical, "
Exiting!"
Exit Sub
End If