I am trying to change the path of a Access file I have.
It has a bit of VB integrated into it and the part that sticks out the most to me in relation to this is
Code:
If strPathToDataFile <> "" Then
DoCmd.SetWarnings False
DoCmd.RunSQL "DELETE * FROM UserList;"
DoCmd.SetWarnings True
Set db = CurrentDb
Set rst = db.OpenRecordset("UserList", dbOpenDynaset)
conn.Provider = "Microsoft.Jet.OLEDB.4.0"
conn.Open "Data Source=" & strPathToDataFile
Can anyone help me
When I run the whole of the code it is telling me that "\\server-03\blah\etc" is an invalid path.
I somehow need to get Access to look at another file rather than the old one.
Can anyone help point me in the right direction?
Thanks
Dan