Hi,
I have posted thisissue a few times over the past week but will little success, so sorry to be repetitious.
The problem;
I've got these lines in a A2000 db that I use to get the backend path so that a copy of the backend can be made each time the user logs on. The event is in the on-open of my splash.
Dim strConnect As String
strConnect = Mid(DBEngine(0)(0).TableDefs("Blocks").Connect, Len(";DATABASE=") + 1)
FileCopy strConnect, "C:\My Documents\VADataFile_BackUp.mdb"
This code works fine in A2000 and A2000 runtime but is not liked by my clients who have AccessXP. It throws up an On Open expression error message. If I remove the lines the db works fine in AXP.
I am thinking that the strConnect bit could be re-written to work in AXP, as I don't have a copy of AXP was wondering if someone could quickly test it for me. I hope I'm not asking to much but do desperatley need to solve this as not all my clients install their dbs to the default location (and one should never assume that they do anyway).
Thankyou for any help, info and replies.
Regards,
Rachael
I have posted thisissue a few times over the past week but will little success, so sorry to be repetitious.
The problem;
I've got these lines in a A2000 db that I use to get the backend path so that a copy of the backend can be made each time the user logs on. The event is in the on-open of my splash.
Dim strConnect As String
strConnect = Mid(DBEngine(0)(0).TableDefs("Blocks").Connect, Len(";DATABASE=") + 1)
FileCopy strConnect, "C:\My Documents\VADataFile_BackUp.mdb"
This code works fine in A2000 and A2000 runtime but is not liked by my clients who have AccessXP. It throws up an On Open expression error message. If I remove the lines the db works fine in AXP.
I am thinking that the strConnect bit could be re-written to work in AXP, as I don't have a copy of AXP was wondering if someone could quickly test it for me. I hope I'm not asking to much but do desperatley need to solve this as not all my clients install their dbs to the default location (and one should never assume that they do anyway).
Thankyou for any help, info and replies.
Regards,
Rachael