troubleshooting Question

Ms Access locate folder either this or that

Avatar of sheng wee
sheng wee asked on
Microsoft AccessVBA
2 Comments1 Solution88 ViewsLast Modified:
Hi All,
I will be having 3 buttons ( 1st to create folder from Ms access, 2nd Rename folder, 3rd open the folder)

1st button =
Private Sub Command58_Click()
filename = Ref_Number.Value
MkDir "c:\SCSWA WORK PROJECTS\AccessDatabase\" & filename
MsgBox ("File has been created successfully")

End Sub

2nd button =
Private Sub Command77_Click()

Dim oldpathname As String
Dim newpathname As String

filename = Ref_Number.Value
scname = SC.Value

    oldpathname = "c:\SCSWA WORK PROJECTS\AccessDatabase\" & filename
    newpathname = "c:\SCSWA WORK PROJECTS\AccessDatabase\" & scname & "_" & filename
   
    Name oldpathname As newpathname
   
End Sub

3rd button=
Application.FollowHyperlink "C:\SCSWA WORK PROJECTS\AccessDatabase\" & Me.Ref_Number.Value

How can I find either that the old folder or the renamed folder ?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros