Q
quixote
OK..let's see if I can explain this. I am not sure how I
can query a file path.
Let's say I have a folder called Orders somewhere. Within
the Orders folder are subfolders with Order groups, eg
1000, 2000, 3000, 4000, etc.
I have a form with Order information and a button on it
that opens and Excel template. When the user clicks the
button I would like for a document to be created and
opened from the relevant directory. Her is an example of
the logic I would need.
dim strOrdGroup = 1000 (this would actually be data from a
form field)
dim strOrd = 1 (same as above)
If "X:\\SomeFolderName\Orders\1000\" & strOrdGroup & "-" &
strOrd & ".xls" exists then
Open that file
Else
create the file "X:\\SomeFolderName\Order\1000\" &
strOrdGroup & "-" & strOrd & ".xls" and open it.
End if
Thanks
can query a file path.
Let's say I have a folder called Orders somewhere. Within
the Orders folder are subfolders with Order groups, eg
1000, 2000, 3000, 4000, etc.
I have a form with Order information and a button on it
that opens and Excel template. When the user clicks the
button I would like for a document to be created and
opened from the relevant directory. Her is an example of
the logic I would need.
dim strOrdGroup = 1000 (this would actually be data from a
form field)
dim strOrd = 1 (same as above)
If "X:\\SomeFolderName\Orders\1000\" & strOrdGroup & "-" &
strOrd & ".xls" exists then
Open that file
Else
create the file "X:\\SomeFolderName\Order\1000\" &
strOrdGroup & "-" & strOrd & ".xls" and open it.
End if
Thanks