I originally posted this under the Forms discussion but feel that this may be more appropriate
I have a database on map plots that users access from a network drive. Users have an option of adding a new plot record and I would like to have button that allows the user to select and then copy the file from their local drive to the network location for others to access. I would also like to be able to do the opposite..click a button and copy the desired network file to their local drive for printing. Is this possible and how would it be done.
I received the following code from Shadez
Private Sub Command58_Click()
Dim fs As Variant
Set fs = CreateObject("Scripting.FileSystemObject")
fs.CopyFile Source, destination, [overwrite]
End Sub
When I place this in the OnClick event but when I run the code I get another Run Time Error 2465 saying that it can't find the field "form" specified in the expresssion.
I don't know enough about this to figure what I am doing wrong. Any help would be greatly appreciated!
I have a database on map plots that users access from a network drive. Users have an option of adding a new plot record and I would like to have button that allows the user to select and then copy the file from their local drive to the network location for others to access. I would also like to be able to do the opposite..click a button and copy the desired network file to their local drive for printing. Is this possible and how would it be done.
I received the following code from Shadez
Private Sub Command58_Click()
Dim fs As Variant
Set fs = CreateObject("Scripting.FileSystemObject")
fs.CopyFile Source, destination, [overwrite]
End Sub
When I place this in the OnClick event but when I run the code I get another Run Time Error 2465 saying that it can't find the field "form" specified in the expresssion.
I don't know enough about this to figure what I am doing wrong. Any help would be greatly appreciated!