Solved

Temporary table solution for web db

Posted on 2011-09-08
4
383 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:dlogan7
[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 84

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 57
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:dlogan7
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 57

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ACESS 2010 Query Criteria 23 55
Query Dilema in Access 2010 3 37
Outlook 2016 VB code syntax 4 37
Export individual report to pdf 2 39
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

734 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