Using Access 2010 and python 2.7.8
Have a command button on Access 2010 form. I am trying to pull the value from the Field1 text box and pass it to a python script. I am struggling with passing the variable. Commented out stuff is other things I tried.
Value in Field1 Text box is:
C:\\tests\\Project
VBA behind command button:
Private Sub Command0_Click()
arg1 = """" & Field1 & """"
'arg1 = Field1
Debug.Print arg1
'Call Shell("C:\\Python27\\ArcGIS10.3\\python.exe " & "C:\\tests\\Test.py " & "C:\\tests\\Project", vbNormalFocus)
Call Shell("C:\Python27\ArcGIS10.3\python.exe " & "C:\tests\Test.py " & arg1, vbNormalFocus)
End Sub
Python code is:
import os.path
#fp = "C:\\tests\\Projects"
fp = argv[1]
os.makedirs(fp)