Solved

Temporary table solution for web db

Posted on 2011-09-08
4
387 Views
Last Modified: 2012-05-12
I have created a hybrid Access application, but have the need for a temporary (local) table to exist in each users copy. This table will be used to allow each user to play some "what if" scenarios. By "hybrid Access application", I am talking about an Access application that has been published to SharePoint, but each user runs an Access file locally with the data being stored on SharePoint. This works very nicely allowing users to use native forms instead of dealing with the browser limitations.

Thanks, Dale
0
Comment
Question by:Dale Logan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 250 total points
ID: 36501848
Just add the table to the Access app, and don't publish that to Sharepoint. Or, create the table when the app is opened, and delete it when it's closed.

Here's a good collection of Access DDL functions:
http://allenbrowne.com/func-DDL.html
0
 
LVL 58
ID: 36502036
 Other option is to create a temp DB, create the table in there (number of ways to do that), then kill off the temp DB when your done.

Jim.
0
 

Author Comment

by:Dale Logan
ID: 36520007
LSM,

I checked out the solutions at the link you provided. My first thought was that there was no way I could pull that off. I am very weak when it comes to VBA. I attempted the one named: CreateTableDDL. When I ran it i get a user-defined ...error on the very first line:

Dim cmd As New ADODB.Command

Also, I don't think you can NOT publish something to SharePoint. When you sync, it gets everything.

Jim,

<create a temp DB, create the table in there >
Again, that may be over my head. Most of my users for this project are using Acces Runtime and don't have the full version of Access. Would your suggestion be possible then?

Thanks, Dale


 
0
 
LVL 58

Assisted Solution

by:Jim Dettman (Microsoft MVP/ EE MVE)
Jim Dettman (Microsoft MVP/ EE MVE) earned 250 total points
ID: 36522483
Dale,

<<<create a temp DB, create the table in there >
Again, that may be over my head. Most of my users for this project are using Acces Runtime and don't have the full version of Access. Would your suggestion be possible then?>>

  Yes.  Here's an example of some VBA that creates a temp DB:

430       pb.SetMessage "Creating scratch database..."

          ' Set the temp database location\name
440       gstrTempDatabaseName = "C:\TravUtilsGLImport.MDB"

          ' Kill the temp database if it exists
450       On Error Resume Next
460       Kill gstrTempDatabaseName
470       On Error GoTo btnVerify_Error

          ' Create temp database
480       Set dbsNew = DBEngine.Workspaces(0).CreateDatabase(gstrTempDatabaseName, dbLangGeneral)

          ' Create table for transactions
490       DoCmd.TransferDatabase acExport, "Microsoft Access", gstrTempDatabaseName, acTable, "tblGLImportData_Template", "tblGLImportData", True

          ' Create errors table
500       DoCmd.TransferDatabase acExport, "Microsoft Access", gstrTempDatabaseName, acTable, "tblGLImportErrors_Template", "tblGLImportErrors", True


It's very stright forward.  Although what LSM suggested would work very well, especially if you added the compact on close option, which would reduce the size of the FE by reclaiming the deleted temp table space.

Jim.
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question