OA_Msg.bas 814 B

12345678910111213141516171819202122
  1. Option Compare Database
  2. Public Function prompt_for_export_confirmation() As Boolean
  3. msg = "**** OPENACCESS EXPORT ****" & vbNewLine & _
  4. "You're going to export the following:" & vbNewLine & vbNewLine & _
  5. msg_list_to_export() & _
  6. ""
  7. prompt_for_export_confirmation = (MsgBox(msg, vbOKCancel + vbExclamation, "Confirm") = vbOK)
  8. End Function
  9. Public Function prompt_for_import_confirmation() As Boolean
  10. msg = "**** OPENACCESS IMPORT ****" & vbNewLine & _
  11. "You're going to update " & UCase(CurrentProject.name) & " with the sources files" & vbNewLine & vbNewLine & _
  12. "WARNING: Any non exported work would be lost!"
  13. prompt_for_import_confirmation = (MsgBox(msg, vbOKCancel + vbExclamation, "Confirm") = vbOK)
  14. End Function