timetrack-pro/fix_bindings_direct.vbs
StillHammer 7c3dd3fb31 Add VBS scripts, documentation, and HTML form templates
- Test and helper VBS scripts for VBA MCP development
- Technical reference documentation and PDFs
- HTML form templates for all 5 forms
- PowerShell and Python scripts for PDF/documentation generation

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-21 11:53:09 +07:00

23 lines
579 B
Plaintext

On Error Resume Next
Dim accessApp
Set accessApp = CreateObject("Access.Application")
' Ouvrir la base (sans fermer la session existante)
accessApp.OpenCurrentDatabase "C:\Users\alexi\Documents\projects\timetrack-pro\db\TimeTrackPro.accdb", True
' Executer directement le code VBA via DoCmd.RunCode
accessApp.DoCmd.RunCode "mod_FixFormBindings.FixAllFormBindings"
If Err.Number <> 0 Then
WScript.Echo "Error: " & Err.Number & " - " & Err.Description
Else
WScript.Echo "Success!"
End If
' Fermer
accessApp.CloseCurrentDatabase
accessApp.Quit
Set accessApp = Nothing