S
SteelFire via AccessMonster.com
I have a database of parts that my company has made. The CAD files are stored
in one of two different places in the network. As of now, this is what I have:
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Private Sub FilePath_Click()
On Error GoTo Err_Handler
'Start of Body of Procedure***********************************
SavedPointer = Screen.MousePointer
Screen.MousePointer = 11
Call GoHyperlink("\\Mainstorage\mainstorage\CURRENT JOBS\" & Me.
[FilePath] & ".dwg")
Call GoHyperlink("\\Mainstorage\mainstorage\OLD JOBS\" & Me.[FilePath]
& ".dwg")
Screen.MousePointer = SavedPointer
'End of Body of Procedure***********************************
Exit_Handler:
Exit Sub
Err_Handler:
Call LogError(Err.Number, Err.Description, "FilePath_Click from
Form_frmPartList")
Resume Exit_Handler
End Sub
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Any time I click, it will open the file in AutoCAD and come up with an error.
This is because the file will work with the first Call GoHyperlink, or the
second, and error with the other. I was thinking if there would be a way to
look at the value of the Me.FilePath and use that as an IF-Then. all the
FilePath's have the year as the first four digits. I am unsure as to how I
would go about doing this. Any help with how to do this or any other way to
go about it would be nice.
in one of two different places in the network. As of now, this is what I have:
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Private Sub FilePath_Click()
On Error GoTo Err_Handler
'Start of Body of Procedure***********************************
SavedPointer = Screen.MousePointer
Screen.MousePointer = 11
Call GoHyperlink("\\Mainstorage\mainstorage\CURRENT JOBS\" & Me.
[FilePath] & ".dwg")
Call GoHyperlink("\\Mainstorage\mainstorage\OLD JOBS\" & Me.[FilePath]
& ".dwg")
Screen.MousePointer = SavedPointer
'End of Body of Procedure***********************************
Exit_Handler:
Exit Sub
Err_Handler:
Call LogError(Err.Number, Err.Description, "FilePath_Click from
Form_frmPartList")
Resume Exit_Handler
End Sub
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Any time I click, it will open the file in AutoCAD and come up with an error.
This is because the file will work with the first Call GoHyperlink, or the
second, and error with the other. I was thinking if there would be a way to
look at the value of the Me.FilePath and use that as an IF-Then. all the
FilePath's have the year as the first four digits. I am unsure as to how I
would go about doing this. Any help with how to do this or any other way to
go about it would be nice.