D
dan.cawthorne
Hi All,
Ive managed to create a command button that creates a one level entry
folder based on 2 filed on my table "ProjectQNo" and "ProjectTitle"
and creates the folder where i want it.
this is code i've used
On Error GoTo PROC_ERR
MkDir "P:\QUOTATIONS\" & Me.[ProjectQNo] & " - " & Me.[ProjectTitle]
DoCmd.OpenForm "frm_MakefolderSuccesful"
PROC_EXIT:
Exit Sub
PROC_ERR:
If err.Number = 2101 Then
'take whatever action is appropraite
Else
'perhaps display error message
End If
But I Would Also like to happen is it to create sub folders to, such
as Estimate, Submission and Tender Info
How do i change the code to suit this?
secondly the more complex question is their away i can create a table
that ms access stores the new folder location onces its created the
folder so i can have command button to open that top level folder?
Ive managed to create a command button that creates a one level entry
folder based on 2 filed on my table "ProjectQNo" and "ProjectTitle"
and creates the folder where i want it.
this is code i've used
On Error GoTo PROC_ERR
MkDir "P:\QUOTATIONS\" & Me.[ProjectQNo] & " - " & Me.[ProjectTitle]
DoCmd.OpenForm "frm_MakefolderSuccesful"
PROC_EXIT:
Exit Sub
PROC_ERR:
If err.Number = 2101 Then
'take whatever action is appropraite
Else
'perhaps display error message
End If
But I Would Also like to happen is it to create sub folders to, such
as Estimate, Submission and Tender Info
How do i change the code to suit this?
secondly the more complex question is their away i can create a table
that ms access stores the new folder location onces its created the
folder so i can have command button to open that top level folder?