I have a database that contains two fields:
Excel file name
File location
I'm trying to create a click button on a form that when clicked, it uses the [file location] and [excel file name] to launch excel and open the existing workbook ([excel file name]) at the file location ([file location]).
However, I am unable to find the VB script that would execute this action.
In addition to this, I would also like for the script to test to see if the excel file exists at the defined location. If not, I would like to have excel launch and create a blank workbook with the file name stated in the control [excel file name] at the defined location [file location].
Finally, would the script work if I have field names with spaces (as shown above)?
Can anyone help?
Thanks in advance.
Excel file name
File location
I'm trying to create a click button on a form that when clicked, it uses the [file location] and [excel file name] to launch excel and open the existing workbook ([excel file name]) at the file location ([file location]).
However, I am unable to find the VB script that would execute this action.
In addition to this, I would also like for the script to test to see if the excel file exists at the defined location. If not, I would like to have excel launch and create a blank workbook with the file name stated in the control [excel file name] at the defined location [file location].
Finally, would the script work if I have field names with spaces (as shown above)?
Can anyone help?

Thanks in advance.
Last edited: