| Open, Save As and Browse Dialogs for Access |
| Virtually every Access application will for some functionality, require use of the Open, Save As or "Browse for Folder" dialogs (Win95/98Me and NT/2000/Xp) for reattaching tables, saving reports or exporting data or any other time an application needs to use the file dialogs. |
|
|
If you are most comfortable programming with functions you can use OSDLG's standard module calls that look like this: Function GetDataMdb() as String GetDataMdb = atOpenFile(Me.hwnd, "Attach Tables from What Database?", 1, True, False) End Function Function GetDataMdbFile() as String
Dim MyDlg as New DialogClass
Dim strReturnFile as String
With MyDlg
.Title = "Please select a Database File"
.TypeFile = 1 'Access mdbs.
.DialogType = "Open"
.Show
strReturnFile = .ReturnValue
End With
GetDataMdbFile = strReturnFile
End Function
|
| Download the Demo database sample for Access 97 or the Demo database sample for Access 2000/2002.
Register today, and get all the code for any version of Access you use to add or update this functionality for your app quickly. |
|
| Back to the Developer Tools | |