D
Don
I have a form that displays records for sale units. On that form there
is a button that, when clicked, opens a folder (e.g. 07-19) that
contains four related subfolders (e.g. Documents, Pictures, Maps,
Miscellaneous). The user can then open the tools related to that sales
record from the form. The hierarchy for these folders is
FY07>07-19>Documents.
I have coded the button to edit the hyperlink address using the
SaleUnitID (e.g. 07-19) field where the first two characters represent
the fiscal year and the last two characters represent the sale unit.
Like so:
ViewFilesLink.HyperlinkAddress = "\\Druma701va16100\forestry\Sales
Data\FY" & Left(SaleUnitId, 2) & "\" & [SaleUnitId] & "\"
However, if those folders do not exist, the button cannot find those
folders. In that case, I would like another button that, when clicked,
creates the fiscal year folder (e.g. FY07), the sale unit folder (e.g.
07-19) and the four subfolders (e.g. Documents, Pictures, Maps,
Miscellaneous) by using the SaleUnitID of the current record. If the
fiscal year folder (e.g. FY07) does exist, I would like the button to
create only the sale unit folder (e.g. 07-19) and the four subfolders
(e.g. Documents, Pictures, Maps, Miscellaneous).
I think I should be using Mkdir but I am unsure exactly how to code
these circumstances.
Any help would be greatly appreciated. Thanks in advance.
is a button that, when clicked, opens a folder (e.g. 07-19) that
contains four related subfolders (e.g. Documents, Pictures, Maps,
Miscellaneous). The user can then open the tools related to that sales
record from the form. The hierarchy for these folders is
FY07>07-19>Documents.
I have coded the button to edit the hyperlink address using the
SaleUnitID (e.g. 07-19) field where the first two characters represent
the fiscal year and the last two characters represent the sale unit.
Like so:
ViewFilesLink.HyperlinkAddress = "\\Druma701va16100\forestry\Sales
Data\FY" & Left(SaleUnitId, 2) & "\" & [SaleUnitId] & "\"
However, if those folders do not exist, the button cannot find those
folders. In that case, I would like another button that, when clicked,
creates the fiscal year folder (e.g. FY07), the sale unit folder (e.g.
07-19) and the four subfolders (e.g. Documents, Pictures, Maps,
Miscellaneous) by using the SaleUnitID of the current record. If the
fiscal year folder (e.g. FY07) does exist, I would like the button to
create only the sale unit folder (e.g. 07-19) and the four subfolders
(e.g. Documents, Pictures, Maps, Miscellaneous).
I think I should be using Mkdir but I am unsure exactly how to code
these circumstances.
Any help would be greatly appreciated. Thanks in advance.