Can SQL, like VBA, request the location of a file with a userform or browse dialog? I am running 2008 R2, but that forum group didn't seem to have a place to ask code questions. Please move the post if necessary. :)OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=C:\import.xls;IMEX=1',
I want to be able to let the user, on-the-fly, change the name and path of the import file or, better yet, browse to it.Either the code or a pointer toward an example or how I can do this would be wonderful. I am nearly brand-new to SQL, but do a bit of VBA. Thanks in advance for any help!