Hiya, noob question here. Access 2003
Within company database there is a form that contain the details of each project each listed with its own unique 'projectID'. On this form I have buttons which opens up windows explorer to a specified folder on our server with the same name as the 'projectID'
i.e. project 'smith10' will open a folder on the server called 'smith10'. Simple enough. Here is the code i use on the button:
Dim ProjPath
ProjPath = "Z:\Projects 2007\" & Me.ProjectID.Value
Shell "C:\WINDOWS\explorer.exe """ & ProjPath & "", vbNormalFocus
PROBLEM is that my director has decided to add extra details on the folder on the server i.e 'smith10 Hey Lane'
how do i still use the same button, ive tried using wildcards but i cant get it to work.
any help would be appreciated.
NOTE: all projectID's are made up of 5 letters or less and a two digit number.
Within company database there is a form that contain the details of each project each listed with its own unique 'projectID'. On this form I have buttons which opens up windows explorer to a specified folder on our server with the same name as the 'projectID'
i.e. project 'smith10' will open a folder on the server called 'smith10'. Simple enough. Here is the code i use on the button:
Dim ProjPath
ProjPath = "Z:\Projects 2007\" & Me.ProjectID.Value
Shell "C:\WINDOWS\explorer.exe """ & ProjPath & "", vbNormalFocus
PROBLEM is that my director has decided to add extra details on the folder on the server i.e 'smith10 Hey Lane'
how do i still use the same button, ive tried using wildcards but i cant get it to work.
any help would be appreciated.
NOTE: all projectID's are made up of 5 letters or less and a two digit number.