A family of Microsoft relational database management systems designed for ease of use.
Hi
You normally need to open the programme (access) 1st then the (application) database - like this
Private Sub Command27_Click()
Call Shell("""C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE"" ""c:\Documents and Settings\Operations\Desktop\archived controlled docs.accdb", 1)
DoCmd.Quit ' this will close your orginal DB - you can delete it if you don't need it '
End Sub
If you don't know the path - you can cheat ;-)
To get the 1st bit of the code some thing like "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE"
It may be different on your machine
in Acc 2007 it is sometimes here
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Office
Click Run
Navigate to your access programme and then click Run - then just copy the path from the run box (big cheat I know ;-)
To get the path the database
Click Run - browse
Select all file types (in the file type dropdown)
Navigate to your DB
Note - the number of commas that I have used in the code above and make sure you do the same. Also note there is a space between the 2 sections of the path
Good luck