Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE
Function selectFile() Dim fd As FileDialog Set fd = Application.FileDialog(msoFileDialogFilePicker) With fd If .Show Then selectFile = .SelectedItems(1) Else 'stop execution if nothing selected End End If End With Set fd = Nothing End Function Private Sub Command0_Click() On Error GoTo ErrorHandler 'disable ms access warnings DoCmd.SetWarnings False 'Delete existing data in table 'This is optional. If you are combining spreadsheets 'in your table, don't run this query 'DoCmd.RunSQL "DELETE * FROM names" 'load spreadsheet DoCmd.TransferSpreadsheet acImport, 8, "tblCapacity", selectFile(), True MsgBox "Import Successful" 're-enable ms access warnings DoCmd.SetWarnings True Exit Sub ErrorHandler: MsgBox "There was an Error: " & Err & ": " & Error(Err) End Sub