I am trying to reference a particular field from a table within a function call. Specifically, I would like to open an executable and get the path from the table. Here, the path is hardcoded in:
Shell(“C:\ECLIPSE_CPP\eclipse.exe”)
However, I would like to store the path within a table and call a function (maybe the Shell function?) on a path from that table.
This is what I have tried:
strSQL = “SELECT Path FROM Paths WHERE Tool = “”Eclipse””;”
Shell(strSQL)
The Paths table looks like this:
Tool | Path
========|=============================
Eclipse | “C:\ECLIPSE_CPP\eclipse.exe”
Does anyone know way to reference this table value in VBA code?