Showing posts with label deployment. Show all posts
Showing posts with label deployment. Show all posts

Saturday, September 13, 2008

Microsoft How-To: Removing a Subdatasheet

Subdatasheets are a neat feature added to Access in the 2000 version, but for anyone building applications, especially when deploying over a network, they should probably be turned off. You'll use your own forms instead of this "free" database feature, and they can cost you in terms of performance.
This article shows how to remove them in Access 2007. In 2003 the remove option is under Format/Subdatasheet.
Also see this great UtterAccess post by Crystal at UtterAccess.com on Subdatasheets, which includes links to articles that discuss the performance issue.

**Links cleaned up 2011-09-05**

Wednesday, February 27, 2008

Help Access run faster

The Microsoft Office Online team has posted a new rundown on performance considerations for Access here. Some of the tips are also in other articles I've linked previously, but this looks like a good list.

Monday, January 14, 2008

Relinking back-end tables

If you've split your database into front-end and back-end, you will from time-to-time need to update the links between the two. For me the most common reason for doing this is that I'm installing an update to the front-end. I build new releases in a development/test environment (where the front-end tables are linked to a test copy of the back-end), and when I'm ready, I copy a new version of the front-end to the server and update the table links so it's connected to the production back-end.

(If you haven't split your database into front-end and back-end and wonder if you should, see Sharing an Access Database.)

Relinking to the back-end tables manually can be time consuming and error prone. You'll probbaly want to adopt some automated way to do the relinking. Here are some that I've found.

Relink Access tables from code
This one from The Access Web is quite nice in that if it does a little hunting to find the table you need to link to. I haven't used it, but code from The access Web is always worth the time it takes to incorporate it into your database.

Relink tables from different datasources
An alternative version from The access Web, this one handles multiple back-ends.

Re-Linking Back-End Tables
This is from the Utteraccess code archive and includes a nice form to manage the relinking.

How to relink back-end tables with the common dialog control in Access 2000
I think this is the original article that the above posts mean to improve upon.

And now here's my version. It's simple and straightforward. It assumes the back-end will be in the same folder as the front-end and that all the linked tables will be linked to the same back-end. It looks in the custom properties of the front-end for the name of the back-end database (File/Database Properties/Custom, create a property called BEDBName.)

Public Sub UpdateTableLinks()
  Dim varThis As Variant
  Dim strThisFolder As String
  Dim strBEFileSpec As String
  
  strThisFolder = CurrentProject.Path
  strBEFileSpec = strThisFolder & "\" & GetDBCustomProperty("BEDBName")
  If MsgBox(Prompt:="Update remote table links to " & strBEFileSpec & "?", _
      Buttons:=vbYesNo + vbQuestion + vbDefaultButton2) = vbYes Then
    For Each varThis In CurrentDb.TableDefs
      With varThis
        If Trim(Nz(.Connect)) Like ";DATABASE=*" Then
          .Connect = ";DATABASE=" & strBEFileSpec
          .RefreshLink
        End If
      End With
    Next varThis
    MsgBox "Relink complete"
  End If
End Sub

Public Function GetDBCustomProperty(ByVal strPropertyName As String) As String
  GetDBCustomProperty = CurrentDb.Containers!Databases.Documents!UserDefined.Properties(strPropertyName)
End Function

Tuesday, October 23, 2007

How do I create an MDE, ADE, or ACCDE file?

Here's another great "soup to nuts" post from Walter at UtterAccess.com. This one covers everything you need to know about creating end user versions of your database for deployment.

deployment, multi-user, security, splitting, network

Tuesday, October 16, 2007

Sharing an Access Database

Here's a great post from UtterAccess.com on splitting your database into Back-End and Front-End and deploying it for multiple users.
Quote:
"Congratulations! Your database has become so popular that others would like to use it. Just copy it to a shared location on the network and create shortcuts, right? Wrong! This is perhaps the largest cause of Access database corruption. Multiple users accessing the same .MDB at the same time is just asking for problems.
... this FAQ is meant to provide the best practices for sharing a database with others. Incorporated into these best practices are the concepts of Maximum Security, Future Manageability, and Higher Degrees of Scalability. Simply put, your database will be as secure as possible, as easy to modify as possible, and as easy to migrate to a larger platform when and if you ever outgrow Access."
deployment, multi-user, splitting

Thursday, October 11, 2007

Deploying an Access Application over a Local Area Network (LAN)

This page runs through a variety of topics related to deployment in a LAN environment, including (among others)performance suggestions and splitting your database.

It includes links to a variety of tips and references, as well as some specific techniques.

Note that the suggestions to use a batch file to deploy front-ends may not be "best practice", there are other alternatives to accomplish the same goal. You should review these and determine which fits your situation best.

deployment, multi-user, performance,network