Okay, here's the snippet of code:
'Set the record set to Text4
Set Text4.DataSource = rsFileName
'Assign column data from the FileName column to Text4
Text4.DataField = "FileName"
'Compile the command line string for the Shell() command
strFileName = "d:\application\pdfs\" & Text4.Text
'Just double checking it here. Yup. it is exactly the same
'as I would type it from the command line (which does work)
MsgBox (strFileName)
'Run the shell
Shell (strFileName)
But it errors out with:
Run-time error '5':
Invalid procedure call or argument
AHHH!!! What is going on???
Thanks in advance! ----------------------------------------
Is George Lucas Kidding...
'Set the record set to Text4
Set Text4.DataSource = rsFileName
'Assign column data from the FileName column to Text4
Text4.DataField = "FileName"
'Compile the command line string for the Shell() command
strFileName = "d:\application\pdfs\" & Text4.Text
'Just double checking it here. Yup. it is exactly the same
'as I would type it from the command line (which does work)
MsgBox (strFileName)
'Run the shell
Shell (strFileName)
But it errors out with:
Run-time error '5':
Invalid procedure call or argument
AHHH!!! What is going on???
Thanks in advance! ----------------------------------------
Is George Lucas Kidding...