First, you need to include an instance of the Microsoft Common Dialog Control on your form. From the forms toolbox select the "More Controls" button (lower right). From the list of controls, select "Common Dialogs Control". Then click on your form to add it. This control will be hidden when the form is diplayed.
Next add the code to call the Open File dialog. In this example, the Common Dialog control is named cdDialog.
Private Sub cbtOpenFile_Click()
Dim sFileName As String
cdDialog.Flags = cdlOFNFileMustExist
cdDialog.Filter = "Access File (*.mdb)|*.mdb"
cdDialog.ShowOpen
sFileName = cdDialog.FileName
MsgBox sFileName
End Sub
You can also use this control to pop a "Save File" dialog (cdDialog=ShowSave), and Color, Font, Help and Printer dialogs (ShowColor, ShowFont, ShowHelp, ShowPrinter)
There are many flags available - like cdlOFNFileMustExist used above. If you have VB you can look in help for all of the options. If you don't, I can email the list of flags, and any examples from VB Help.
Hope this helps.