Hi,
Is it possible to use buttons on a VB form to actually run an Access2 and/or Access 2000 programme rather than just link to tables etc?
If it is possible some sample code would be helpful and appreciated.
Regards
Phil Smith
Public appAccess As New Access.Application
Global strPath As String
Global strAccessFile As String
Global sTmp As String
Global sTable As String
Global Destination As String
Dim password As String
password = "edderic"
Dim db As DAO.Database
Rem ** Bepalen van de locatie van de applicatie
strPath = IIf(Right$(App.Path, 1) <> "\", App.Path & "\", App.Path)
strAccessFile = "Scriptie01.mdb"
Set db = appAccess.DBEngine.OpenDatabase(strPath & strAccessFile, False, False, "MS Access;pwd=" & password)
appAccess.OpenCurrentDatabase strPath & strAccessFile
Set db = Nothing
appAccess.DoCmd.OpenForm "Switchboard"
Rem ** ACCESS ZICHTBAAR MAKEN
appAccess.Visible = True
Its open a database with a password and a Switchboard
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.