How to change a path in Access/VB?

brainst0rm

Registered User.
Local time
Today, 22:38
Joined
Jun 6, 2007
Messages
19
Hi there. I have a form with some functions: in particular I'd like to change what a button do: when I click it, the form calls this:

Code:
Runtime erroe 3304
S:\Commercial\2006Businessplan.xls is not a valid path
etc etc etc

Basically this file is now hosted in another server, but I don't know how to change this path. Here the onClick propriety:

Code:
Private Sub productreportattrqry_Click()

Dim stDocName As String

    stDocName = "Weekly Product Sales Analysis Attributes"
    DoCmd.OpenQuery stDocName, acNormal, acEdit


End Sub

Thanks. Diego.
 
Is that all of the code for the button?

As far as I know, yes. How can I know if it's actually only this?

Thanks for your help. Diego.
 

Users who are viewing this thread

Back
Top Bottom