473,387 Members | 1,464 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,387 software developers and data experts.

Access 2010 Intermittent Data Loss

I have an Access Front End/Back End application that gathers data from multiple questionnaires. This is a single user application. There is a questions table that different questionnaires pull from using junction tables. Questions are loaded to a temporary table where responses are gathered, then saved to two tables (header record and detail records). The application also allows to update responses by copied from the save table to the temporary table to update scores.

We are noticing an intermittent problem where we are experiencing data loss during the copying back to the temporary file. Not only does the data not get to the temporary file, but the detail data from the save table is also gone.

I'm assuming it has something to do with an indexing issue, and I have banged on the data to replicate it, and cannot find any meaningful combination of steps that causes it.

My initial thought is to run Compact on Close in the application, since it is a single user application, and it does open and close relatively frequently, but I have read enough of the evils of CoC to think twice about that.

Any thoughts?
Jan 29 '15 #1
9 1231
twinnyfo
3,653 Expert Mod 2GB
JustSteve120,

I try to avoid temporary Tables if at all possible because of some of the bloat problems this can cause. What is the structure of the tables and data in your project that requires temporary tables, as it was not clear from your description.

The CoC problems can cause headaches, but I have been able to avoid those problems when the DB is compacted from a Network location (doesn't make any sense to me, either).
Jan 29 '15 #2
The application has a large number of survey types (around 30), and the surveys are lists of questions that can be scored yes, no, or na. There is a separate table holds the questions. Questions can be used in multiple surveys, so it's not a 1:1 relationship. The temporary table is used to manage the questions that are being displayed from the questions table so they can be displayed on a continuous form. Once the questions are answered, they're saved to a Saved Data table and the Temporary table is deleted.

What complicates things a little bit is that the user has the ability to score the survey multiple times (multiple records) of the same survey for a surveyed party. So the there is also a record counter built into the process.

Regarding the Coc, the problem is that each application is standalone, so until the data is downloaded at the end of the month it doesn't hit a network really at all. So the CoC operation would happen on the local machine.
Jan 29 '15 #3
twinnyfo
3,653 Expert Mod 2GB
Could you include a list of your table structures? I think you can do this without any temp tables. it sounds like your data may need some normalization....
Jan 29 '15 #4
Hopefully this makes sense...

Questions Table
IDQuestion Number
Question Text Memo
TextResponse Text
Non-scored Yes/No

Survey Tool Table
IDSurveyTool Number
ToolName Text
ToolType Text

ToolQuestionJctTable

IDQuestion
IDSurveyTool

SurveyTypeJctTable
IDSurveyType
IDSurveyTool

SurveyHeaderTable
IDAuditNumber AutoNumber
SurveyNumber Text
IDProvider Number
SurveyDate Date
IDSurveyor Text
IDSurveyType Number


SurveyToolHeaderTable
SurveyNumber Text
IDSurveyTool Number
RecordNumber Number
ToolScore Number


SurveyResultsTemp

IDSurveyTool
RecordNumber
IDSurveyQuestion
DisplayNumber (for ordering questions on the continuous list)
SurveyQuestion
SurveyNumber
IDProvider
ProviderName
TextResponse
NonScored


SurveyResponseSaveTable

IDSurveyTool
RecordNumber
IDAuditQuestion
DisplayNumber
SurveyNumber
TextResponse
Jan 29 '15 #5
twinnyfo
3,653 Expert Mod 2GB
Can you explain the process (brief overview) of how you generate a survey and save the results?

Although when I have copied records, I've not had problems with data loss--but what makes your problem so much trickier is that it is intermittent. I can only assume that when you do your surveys, sometimes the data copies, and other times it does not?

This is where is we can get around the Temp Table and simply create an append query that consolidates everything into your final table, we might avoid some of the problems you are having.

Sorry for asking for even more information, but we like to understand the problem a bit better before we provide any specific recommendations.
Jan 29 '15 #6
From the provider record (who is being surveyed), the survey is launched. A header form is launched to set the header info -- date and survey type. Once survey type is selected, the survey tools are returned that can be selected from.

Selecting the tool launches a continuous form with the identified questions in a list of 50 or more questions. There is a dropdown box that allows for selection of Yes/No/NA.

The surveyor scores, and chooses to either save and close the tool or select "Next" which saves score then reloads same tool. Both close and Next moves data from Temp to Save table and clears the temp table.

The application also allows to reload a previously completed survey, including the multiple records of a tool, to edit or update a score.
Jan 29 '15 #7
twinnyfo
3,653 Expert Mod 2GB
Steve,

Just on the surface, your description seems to make it clear that you can do this without using Temp Tables (unless I am missing something).

My thought is that whatever process you use to make the Temp Table records and then copy them to the permanent Table, you should be able to simple append those records to the permanent table, and then complete the surveys from that table.

Of course, this still does not "explain" your data loss. It could be a data validation issue, but it does not seem you have identified any "patterns" in your data loss.

Of course, there may be reasons why you would want to use this temp table arrangement, but based on how you use the data, it does not appear you "need" to.
Feb 2 '15 #8
Thanks for your assistance on this. I'm going to take a look at seeing how the application can go straight to the permanent table.

Regarding the data loss, I have added a couple of data refreshes in click actions, which has seemingly stopped the problem. Not really sure why.
Feb 3 '15 #9
twinnyfo
3,653 Expert Mod 2GB
Yes, your problem does sound strange-- not one that I have every encountered, before.
Feb 3 '15 #10

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

Similar topics

0
by: sid | last post by:
Data loss in Access-97 from VB 6.0 I have encountered Random data loss in our access database. Sometimes the users call in saying that the records entered by them are lost. The users, use our VB...
7
by: Neil Ginsberg | last post by:
I'm having some problems with an Access 2000 MDB file with a SQL Server 7 back end, using ODBC linked tables. I previously wrote about this, but am reposting it with some additional information and...
1
by: Alan Yim | last post by:
Hi folks, My company recently upgraded our Office suite from 2003 to 2010. The problem in particular is with an Access database that was originally designed in Access 2003. The code in question...
8
by: Karen Skillern | last post by:
My client is running an Access 2010 database, front-end linked to back-end. Users are few, only one or two. Yesterday, I needed them to send me a copy of the back-end so that I'm looking at the...
4
beacon
by: beacon | last post by:
Hi everybody, My title may not exactly describe my issue, so please forgive my lack of creativity today. I've got a database that was created in Access 2003 that I've opened in Access 2010. I...
1
by: Sweeda | last post by:
Hi guys, as you read in the title, I've got problems with more than one record in a table: On opening the form that displays the field it appears the error 3197 "The Microsoft Jet database...
2
by: Paul Howarth | last post by:
My Access 2010 database is suddenly not appending Named Ranges from Excel into and Existing Access 2010 Table. I have not written any code. I simply right-click the Table-Import-Excel and follow...
5
by: Katie Howard | last post by:
I have an Access 2010 database and am using the feature of collecting data by email. I’m using the InfoPath form as the means of collecting the data. In general, it works well – but I’ve run into 2...
2
by: irslan rafique | last post by:
Hi, I am creating a database using Access 2010 Web Database. I have two tables: 1-Maintbl with these fields: 1- Date 2- RTNo 3-DriverName 4- ConID 5-ConName 6- Zone 7-...
2
by: CLSkcab | last post by:
Background: Front End: MS Access 2010/VBA, Back End: MS SQL Server 2008 Can an Access 2010 program start another Access 2010 program and pass data to the one it starts? Thanks in advance.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...

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.