strAttachResult = AttachDB(Starter.strAppDir & "/" & strDBNew , "DBA")
Sub AttachDB(strDBFolder As String, strDBName As String) As String
Dim strSQL As String
strSQL = "ATTACH DATABASE '" & strDBFolder & "' AS '" & strDBName & "'"
Try
cConnection.SQL1.ExecNonQuery(strSQL)
Catch
ShowError("Error in AttachDB", "")
Return "Error"
End Try
Return ""
End Sub