![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
He reinstalled our application, copied in the database and the client tells us that the data is blank. My only guess is that the data was also stored in the virtual store folder. He sent us the data.mdb and it is indeed blank. Can it be possible that the data was stored in two places? I have code to display where the clients table is, but would this work if the data was in the VS? Dim dbpath As Variant dbpath = CurrentDb.TableDefs("tblclients").Connect Me.txtdatahome = Mid(dbpath, 11) |
#3
| |||
| |||
|
|
On Mon, 21 Mar 2011 20:32:42 -0600, PW emailaddyinsig (AT) ifIremember (DOT) com> wrote: He reinstalled our application, copied in the database and the client tells us that the data is blank. My only guess is that the data was also stored in the virtual store folder. He sent us the data.mdb and it is indeed blank. Can it be possible that the data was stored in two places? I have code to display where the clients table is, but would this work if the data was in the VS? Dim dbpath As Variant dbpath = CurrentDb.TableDefs("tblclients").Connect Me.txtdatahome = Mid(dbpath, 11) I think that works but then I always ensure I follow the standards that MS has been suggesting since before Windows 2000. And that is don't use Program Files to store the data and or user updatable files. This includes the Access FE because Access updates it as you work with it. You should be using the My Documents folder for the data MDB and the Application Data folder for the Access FE. Tony |
#4
| |||
| |||
|
|
On Mon, 21 Mar 2011 20:32:42 -0600, PW emailaddyinsig (AT) ifIremember (DOT) com> wrote: He reinstalled our application, copied in the database and the client tells us that the data is blank. My only guess is that the data was also stored in the virtual store folder. He sent us the data.mdb and it is indeed blank. Can it be possible that the data was stored in two places? I have code to display where the clients table is, but would this work if the data was in the VS? Dim dbpath As Variant dbpath = CurrentDb.TableDefs("tblclients").Connect Me.txtdatahome = Mid(dbpath, 11) I think that works but then I always ensure I follow the standards that MS has been suggesting since before Windows 2000. And that is don't use Program Files to store the data and or user updatable files. This includes the Access FE because Access updates it as you work with it. You should be using the My Documents folder for the data MDB and the Application Data folder for the Access FE. Tony |
#5
| |||
| |||
|
|
. . . We've always had the MDE and MDW go to the C:\Program Files folder like every other applictaion does that I have installed on every Windows PC I've ever used. |
#6
| |||
| |||
|
|
"PW" <emailaddyinsig (AT) ifIremember (DOT) com> wrote . . . We've always had the MDE and MDW go to the C:\Program Files folder like every other applictaion does that I have installed on every Windows PC I've ever used. Are you being just a little condescending here? You are aware, are you not, that the software application that is "like every other" is Access itself or the Access runtime, not the "database application"? And, if one has not split the data (back-end) from the user interface (front-end), what you describe will store the user's data in C:\Program Files, also, and that is a "no-no". |
|
I'd say, if you are selling applications created in Access (as certainly seems to be the case from what you write) and do not understand that, in essence, both the front-end (database application) and the back-end (data store) are really just "data files" to the Access or Access runtime software |
#7
| |||
| |||
|
|
On Mon, 21 Mar 2011 20:32:42 -0600, PW emailaddyinsig (AT) ifIremember (DOT) com> wrote: He reinstalled our application, copied in the database and the client tells us that the data is blank. My only guess is that the data was also stored in the virtual store folder. He sent us the data.mdb and it is indeed blank. Can it be possible that the data was stored in two places? I have code to display where the clients table is, but would this work if the data was in the VS? Dim dbpath As Variant dbpath = CurrentDb.TableDefs("tblclients").Connect Me.txtdatahome = Mid(dbpath, 11) I think that works but then I always ensure I follow the standards that MS has been suggesting since before Windows 2000. And that is don't use Program Files to store the data and or user updatable files. This includes the Access FE because Access updates it as you work with it. You should be using the My Documents folder for the data MDB and the Application Data folder for the Access FE. Tony |
#8
| |||
| |||
|
|
On Tue, 22 Mar 2011 16:37:47 -0500, "Access Developer" accdevel (AT) gmail (DOT) com> wrote: "PW" <emailaddyinsig (AT) ifIremember (DOT) com> wrote . . . We've always had the MDE and MDW go to the C:\Program Files folder like every other applictaion does that I have installed on every Windows PC I've ever used. Are you being just a little condescending here? You are aware, are you not, that the software application that is "like every other" is Access itself or the Access runtime, not the "database application"? And, if one has not split the data (back-end) from the user interface (front-end), what you describe will store the user's data in C:\Program Files, also, and that is a "no-no". Well, what if they (data.mde and code.mdb) were in a different folder? Like C:\ourapp\ and\or C:\ourapp\data? Sometimes the data is on a server and the tables get reattached (by the user pathing to it). Or the MDE goes into Program Files but the data goes into C:\ourapp\data? Would that make you happy :-) I'd say, if you are selling applications created in Access (as certainly seems to be the case from what you write) and do not understand that, in essence, both the front-end (database application) and the back-end (data store) are really just "data files" to the Access or Access runtime software That I did not know! Thanks Larry. |
#9
| |||
| |||
|
|
Aargh. I reread and it was I who was being condescending. I apologize and ask your forgiveness. The front-end (UI for the database application) and back-end (data store) should be in folders as you describe... if it is an "individual application", they could be in the same folder, but if it is a multi-user application, then it is most common to put the back-end on a server, so would be in separate folders. Each user, in a multiuser environment, should have his/her own copy of the front-end -- the probability of corruption (of the front end) is significantly higher if multiple users are logged in to the same copy. |
|
In Access 2007 and later, you will probably want to identify the folder in which you place the front-end as a "trusted location". Larry Linson Microsoft Office Access MVP |
| "PW" <emailaddyinsig (AT) ifIremember (DOT) com> wrote in message news:736io6h5ggqvabs6kmmq3efabi0bfg505f (AT) 4ax (DOT) com... On Tue, 22 Mar 2011 16:37:47 -0500, "Access Developer" accdevel (AT) gmail (DOT) com> wrote: "PW" <emailaddyinsig (AT) ifIremember (DOT) com> wrote . . . We've always had the MDE and MDW go to the C:\Program Files folder like every other applictaion does that I have installed on every Windows PC I've ever used. Are you being just a little condescending here? You are aware, are you not, that the software application that is "like every other" is Access itself or the Access runtime, not the "database application"? And, if one has not split the data (back-end) from the user interface (front-end), what you describe will store the user's data in C:\Program Files, also, and that is a "no-no". Well, what if they (data.mde and code.mdb) were in a different folder? Like C:\ourapp\ and\or C:\ourapp\data? Sometimes the data is on a server and the tables get reattached (by the user pathing to it). Or the MDE goes into Program Files but the data goes into C:\ourapp\data? Would that make you happy :-) I'd say, if you are selling applications created in Access (as certainly seems to be the case from what you write) and do not understand that, in essence, both the front-end (database application) and the back-end (data store) are really just "data files" to the Access or Access runtime software That I did not know! Thanks Larry. |
#10
| |||
| |||
|
|
We've always had the MDE and MDW go to the C:\Program Files folder like every other applictaion does that I have installed on every Windows PC I've ever used. The user can change the installation for all the files but I don't think separate files can be selected (should happen automatically any way). |
![]() |
| Thread Tools | |
| Display Modes | |
| |