I have been playing aroiund with some code to open a folder, first it has to check to see if the folder exists, if it dosent, it has to create it. It works fine up to the point of opening the folder. When it opens it always opens My Documents rather than the path that I want.
This is my code:
This is my code:
Code:
Private Sub btn_EventPhotos_Click()
Dim x As Variant
If Len(Dir("C:\Databases\Event Photos\" & Me.ConcatinatedName, vbDirectory)) = 0 Then
MkDir ("C:\Databases\Event Photos\" & Me.ConcatinatedName)
End If
x = Shell("EXPLORER.EXE c:\Databases\" & "Me.ConcatinatedName", vbNormalFocus)
End Sub