Hi,
I'm confused about this...
I have a fully running Access setup using several tables. Everything works just fine.
However, I want to be able to have a folder containing a copy of the development system which is the same (including any changes I make of course) as the live system.
My users are testing the live system user interface and testing/checking for errors, then making suggestions for improvements.
I wish to make a change in Development system, test it in that environment and then simply copy the whole thing to the live location. Note that this is only for development whilst I get everything right! I'm aware that when the system goes fully live I won't be able to do that as there will be changes in the live database taking place.
I have an input form in each location (development and Live). This form has a SAVE button with code as it takes info from the unbound fields on the form and then populates by data table with a new record. The issue I have is that the save button references an absolute path to the data table like this:
I have a variable in the Save button code that opens the database - but with an absolute path.
mydb = C:\Users\Devel\Desktop\AccessDevel\StkDatabase.accdb
The variable is used later on in the save button script to populate the table.
What I want to do is remove the absolute path and use a path that is not absolute in this statement so, if I'm using the Live system I want the path to point to that - or, if I'm using the Development system, I want the path to point to that location. I want the ability to be able to change something in the Development system and then copy the entire .accdb file so that it immediately works in the new location. Presently, in order to do this, I have to edit the absolute path every time I copy it across. It's annoying.
Is there a way to do this so that the code picks up the path for the Input Form currently running and uses that? I don't want to use a bound form as doing things the way I'm doing it is very flexible and there is a lot of checking going on when a record is saved.
I hope I've explained myself correctly... !
Any ideas guys - or am I asking too much...?
I'm confused about this...
I have a fully running Access setup using several tables. Everything works just fine.
However, I want to be able to have a folder containing a copy of the development system which is the same (including any changes I make of course) as the live system.
My users are testing the live system user interface and testing/checking for errors, then making suggestions for improvements.
I wish to make a change in Development system, test it in that environment and then simply copy the whole thing to the live location. Note that this is only for development whilst I get everything right! I'm aware that when the system goes fully live I won't be able to do that as there will be changes in the live database taking place.

I have an input form in each location (development and Live). This form has a SAVE button with code as it takes info from the unbound fields on the form and then populates by data table with a new record. The issue I have is that the save button references an absolute path to the data table like this:
I have a variable in the Save button code that opens the database - but with an absolute path.
mydb = C:\Users\Devel\Desktop\AccessDevel\StkDatabase.accdb
The variable is used later on in the save button script to populate the table.
What I want to do is remove the absolute path and use a path that is not absolute in this statement so, if I'm using the Live system I want the path to point to that - or, if I'm using the Development system, I want the path to point to that location. I want the ability to be able to change something in the Development system and then copy the entire .accdb file so that it immediately works in the new location. Presently, in order to do this, I have to edit the absolute path every time I copy it across. It's annoying.
Is there a way to do this so that the code picks up the path for the Input Form currently running and uses that? I don't want to use a bound form as doing things the way I'm doing it is very flexible and there is a lot of checking going on when a record is saved.
I hope I've explained myself correctly... !
Any ideas guys - or am I asking too much...?