I built a database previously in Access 2003... or maybe 2002. Either way, it's been working flawlessly, but I just noticed something today with that database.
One big piece of that database is importing spreadsheets, text files, tables from other databases on an as needed basis.
The way I have it setup is using a command button to run this command:
However, when I tried to run this database for the first time with Access 2007, I got an error:
And as a reference, I did verify that apparently the acCmdImport function will not function in Access 2007:
So my question is, does anyone have any suggestions off hand for an alternative? And in case it helps, I'll post the full small bit of code I was using behind the affected form button:
Thanks in advance for any suggestions, references, examples, etc.
--
"If to err is human, then I must be some kind of human!" -Me
One big piece of that database is importing spreadsheets, text files, tables from other databases on an as needed basis.
The way I have it setup is using a command button to run this command:
Code:
DoCmd.RunCommand acCmdImport
However, when I tried to run this database for the first time with Access 2007, I got an error:
Code:
Error Number = 2002
Error Description = You tried to perform an operation involving a function or feature that was not installed in this version of Microsoft Office Access.
And as a reference, I did verify that apparently the acCmdImport function will not function in Access 2007:
So my question is, does anyone have any suggestions off hand for an alternative? And in case it helps, I'll post the full small bit of code I was using behind the affected form button:
Code:
Private Sub cmdImport_Click()
On Error GoTo cmdImport_Err
[b][blue][highlight gray]DoCmd.RunCommand acCmdImport[/highlight][/blue][/b]
cboTables.Requery
Exit Sub
cmdImport_Err:
If Err.Number = 2501 Then
Else
MsgBox "There was an error in the database: " & Chr(13) & Chr(13) & _
"Error Number: " & Err.Number & Chr(13) & _
"Error Description:" & Chr(13) & _
" " & Err.Description, vbCritical, "Error Encountered!"
End If
cboTables.Requery
End Sub
Thanks in advance for any suggestions, references, examples, etc.
--
"If to err is human, then I must be some kind of human!" -Me