473,394 Members | 1,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Recently Split Database

166 100+
Hello:

I recently split my database. I emailed the FE to users. I wanted to know, if and when I need to make a change to it or add another piece to it, how would I go about updating the DB, through my local FE or the BE, which only holds the tables? I have a app that i've been working on and when I finish, I plan to merge it to my DB...how can I accomplish it now that the DB is split?

Thanks!
Feb 9 '09 #1
18 1772
ChipR
1,287 Expert 1GB
The usual way will be to create a new version of the FE, email it, and tell users to replace their old FE with this new one. Make sure you use a backup copy of the backend for any work you do on the frontend!
Feb 9 '09 #2
csolomon
166 100+
OK, so I need to make a back up of my back end.
I make changes on the front end. If I need to add tables, I add them to the BE and add the forms and queries to the FE, then re-link the tables in the FE?
Feb 9 '09 #3
ChipR
1,287 Expert 1GB
RIght. Then you can just copy the new tables from the backup BE to the actual BE at the same time that you start using the new FE.
Feb 9 '09 #4
csolomon
166 100+
when you say 'back up backend' what do you mean? I don't have a back up backend...what I did was make a copy of the original DB and import tables from that to a new DB. I then deleted all of the tables from the original DB and made the the FE...and distributed that. So inessence, I would be making the changes to the original DB and re-making the FE for distribution?
Feb 9 '09 #5
ChipR
1,287 Expert 1GB
Don't do any work on your FE while it's connected to your live data in the BE. It's not worth the risk. Put a copy BE somewhere and relink the tables in your FE to that. When you are ready to release, make a backup of the live BE, then update the live BE and relink the FE to it and distribute.
Feb 9 '09 #6
Dan2kx
365 100+
I created some code to check a hard coded variable against a table value, followed by a batch file that writes itself and pulls the new version down, if you wish i will post.

Dan
Feb 10 '09 #7
NeoPa
32,556 Expert Mod 16PB
@csolomon
Back up - make a copy of.
Backend - BE database.

Essentially, the suggestion is to make a copy of the BE database and develop your changes in the FE database such that it uses the backup copy of the BE rather than the live version.

I think that's what's meant. Correct me if I misconstrue.
Feb 16 '09 #8
csolomon
166 100+
@NeoPa
OK. So I have been working on the BE copy to do some developing. I was wondering when it's time for me to transfer those changes to the main FE, how would I go about doing that? Importing the forms from my local FE to the main FE?

Also, each of my users use certain forms. I was wondering if I could customize each FE based on what the user should see.

Thanks
Feb 17 '09 #9
NeoPa
32,556 Expert Mod 16PB
I suggest we stick with the original question, at least until it is clear that it's resolved. This thread is already getting confusing with questions going off in various directions.

I think that a question on how to design your database(s) in an FE/BE setup with your specified restrictions is not something for this thread at all.
Feb 17 '09 #10
csolomon
166 100+
I was just trying to get some clarification on my original question...I'll post the other half in a new thread.
Feb 17 '09 #11
NeoPa
32,556 Expert Mod 16PB
I'm not trying to be difficult. A confusing thread is one that's less likely to get further help is all.

In your position I'd consider replying to Dan's last post about some stuff he's already developed. I suspect that may be quite useful to you.
Feb 17 '09 #12
csolomon
166 100+
@Dan2kx
Hi Dan,

If I understand what you said, you have a program that updates all of the FE's without my having to resend them when I update? I think this may be useful to me. I would appreciate if you posted.

Thanks,

csolomon
Feb 17 '09 #13
Dan2kx
365 100+
Hi, the following code which (for me) runs on startup

Expand|Select|Wrap|Line Numbers
  1. Function VersionCheck() As Boolean
  2. Dim VN As Integer, meVN As Integer, fn As String, MDEfn As String
  3.     VN = DMax("Version", "tblVersion")
  4.         'DoCmd.RunSQL "UPDATE tblVersion SET tblVersion.Version = " & VN + 1 & ";"
  5.     MDEfn = """" & DLookup("MDEfn", "tblVersion", "Version = " & VN) & """"
  6.     meVN = 2
  7.     If VN <> meVN Then
  8.     VersionCheck = True
  9.     MsgBox "The version you are currently using has been superseded by another;" & vbCrLf & _
  10.             "The program will close and retrieve the latest version before continuing.", vbCritical, "Program Update Available..."
  11.         fn = FolderFromPath(CurrentDb.Name) & "Update.cmd"
  12.         Open fn For Output As #1
  13.         Print #1, ":CheckLoop1"
  14.         Print #1, "Copy " & MDEfn & " " & """" & CurrentDb.Name & """" & " / y "
  15.         Print #1, "If ErrorLevel 1 GoTo CheckLoop1"
  16.         Print #1, """" & CurrentDb.Name & """"
  17.         Print #1, "Del " & """" & fn & """" & " /f"
  18.         Close 1#
  19.     Call Shell(fn, 1)
  20.     DoCmd.Quit acQuitSaveAll
  21.     End If
  22. End Function
Expand|Select|Wrap|Line Numbers
  1. Public Function FolderFromPath(strFullPath As String) As String
  2.     FolderFromPath = Left(strFullPath, InStrRev(strFullPath, "\"))
  3. End Function
I have a linked table "tblVersion", that stores a number which can be changed obv. and the path to the updated file, mde/mbd. this function holds a hard coded value (to be changed on new release), if the values dont match then the function writes a batchfile, closes access and the batch runs. it is very crude and has the potential for error (because of the loop, but you could put a counter in) but i like it.
i hope this is clear and can help you,
Feb 17 '09 #14
NeoPa
32,556 Expert Mod 16PB
That's kinda neat Dan :)

I have a similar one in a spreadsheet that saves only one of the sheets to a new file and FTPs the file to a server. Never done it in Access before though.
Feb 17 '09 #15
Dan2kx
365 100+
Thanks NeoPa, i must credit you on the Checkloop syntax which you gave me in a previous post; (http://bytes.com/topic/access/answer...e-reopen-db-vb), i also add another line on mine to resolve hidden files

Expand|Select|Wrap|Line Numbers
  1. Attrib -H "FileName" 
  2. *Code*
  3. Attrib +H "Filename"
Feb 17 '09 #16
NeoPa
32,556 Expert Mod 16PB
I see. Yes that probably helped a bit.

What I was referring to though, was the way you created the CMD file in your Access VBA code. I don't recall helping with that (although I've contributed to a few threads on a variety of topics in my time so it's hard to be positive). That's certainly good to see and I was impressed.
Feb 17 '09 #17
csolomon
166 100+
@Dan2kx
--Hi Dan, Thanks for the post.

I noticed you had "and the path to the updated file, mde/mbd", does that mean this will not work with Access 2007, which has the file type .accde? Also this code is put in when the DB starts? Where would that code go? In a module or and update event somewhere.

Thank you
Feb 18 '09 #18
Dan2kx
365 100+
sorry i meant put the path to file (with the extension),

you could hard write that too if you require, i choose to store that in the version table and use a dlookup.

WRT location of code, you can put it where ever you want, what i posted was a function, so this can go in a module, and you simply need to refer to
Expand|Select|Wrap|Line Numbers
  1. VersionCheck
in some code that runs on startup, alternatively you can just use the code on its own (remove top and bottom Function lines).

i use an auto exec macro (in a2003) that runs on startup some other "Startup()" code and the VersionCheck resides there, you could have a form load on startup and have this code in the On Load/Open etc (of the form)

Good luck, let me know if you need any further advice

Dan
Feb 18 '09 #19

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Larry L | last post by:
Access is noted for bloating a database when you add and delete records frequently. I have always had mine set to compact on close, and that works great. Now after everyone's advice I split my...
1
by: rcmail14872 | last post by:
I have a standard Access database with standard Forms and it is not split. I am going to run the upsizing wizard to change the data tables to SQL. I also need to split the database and I am going...
7
by: Mark A | last post by:
If server 01 running HADR in the primary role crashes, and the DBA does a HADR takeover by force on the 02 server to switch roles, then the 02 server is now the primary. What happens when the...
2
by: needin4mation | last post by:
Hi, thanks for any help here: SqlCommand cmd = new SqlCommand("SELECT categories FROM catalog" conn); rdr = cmd.ExecuteReader(); String temp; while (rdr.Read()) { temp = rdr;...
9
by: MrHelpMe | last post by:
Hello again experts, I have successfully pulled data from an LDAP server and now what I want to do is drop the data into a database table. The following is my code that will insert the data but...
12
by: garyusenet | last post by:
string lines = File.ReadAllLines(@"c:\text\history.txt"); foreach (string s in lines) { ArrayList results = new ArrayList(); string delimit = ";"; string currentline = s.Split(";"); ...
3
by: najimou | last post by:
Hi everyone I will be having a split database, running on 2 computers via mapped drive. computer "A" will have one front end and the back end located in c: \mydatabse 2 tables have links to...
6
by: Stan | last post by:
I am working on a database in ACCESS 2003. This is a simple DB with only one table. I have split the DB so I can upgrade and debug the front end before installing on my clients' computer. I used...
4
by: Mark A | last post by:
I would like to make a split mirror copy of a HADR standby database. Please note that I do not want to create a standby with a split mirror of the primary, but I want to make a split mirror of the...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.