dev ashish's shellexecute module will open any file with its registered default program
http://access.mvps.org/access/api/api0018.htm
problem with this solution that in some cases there is no registered default program for csv.
so i search for a solution that will force opening the csv file with excel with the shellexecute module.
any excel version that is exists in the computer
Thats what I thought also.That surprises me as I thought Excel automatically made itself the default for csv files.
Excel isn't as smart as it thinks it is and opening a .csv file with a double-click (which is what the suggested methods mimic), you have to be certain that you don't have any zip codes or other codes that begin with leading zeros because Excel assumes they are numbers and numbers don't have leading zeros so my zip is converted from 06614 to 6614. And then there is the problem with long numbers. Many applications use long numeric strings as record IDs. Those IDs may only contain numbers (such as CC numbers and SSN) but they are codes and codes need to be defined as text. Excel converts these to scientific notation and that causes you to loose the true value of the ID.
^ Depends how you export the data.
If strings are enclosed in quotes they'll most likely be imported as strings. But that's often not the case.
I can't think of any reason why you'd want to open a csv file in Excel from Access. Summats up 'ere.