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

data has disappeared

I have a database for tracking state miles for IFTA. To avoid errors, I have a lookup table of bordering states to the state presently in. For state line crossings, I have a combo box that limits the choices to the states that border the current state. I have been using this for a couple years with no problem but in the last couple months have experience issues where a border state is no longer in the table and therefore not an available choice although it has been numerous times. The first few times I just added it back to the table and went on but it is continuing to happen so I'm trying to find out what's going on. It is not the same state each time.
Thanks in advance for your help!
Jan 13 '16 #1
6 1018
jforbes
1,107 Expert 1GB
In the past, when I've run into this situation there is a Form based on the table with the disappearing records that allows deletes. A user comes along and clicks the Red-X to exit the Form but the Red-X is really to delete the record. Usually this is an honest mistake and removing the ability to delete records from the Form stops the problem.
Jan 13 '16 #2
I thought of that possibility. The form is a details form in continuous view. Since the records must be entered in order there are times when a record needs to be deleted if they are out of order on the trip sheet and it's not caught in advance. I entered a dummy trip and then deleted a couple state line records to check this but they weren't deleted from the lookup table. I suppose it's possible that could happen at times. The lookup table is only for the available choices. The data is saved in the details table.
Thanks!
Jan 13 '16 #3
zmbd
5,501 Expert Mod 4TB
Have you made any modifications to the working database?

Which version of Access

The two controls, do these two controls share any records between them for the control-source property?

Would you mind listing the table names and any relationships to each other.

If there are relationships, do you have cascade-delete enabled? (I never enable cascade-delete, all too often vital data has been deleted by the uncaring/knowing user!)


On a side note, any reason you have to enter the events in order? The reason I ask is that I have a database that tracks historical events for instrumentation and I often enter legacy events as I find them and it is the date/time field that handles the ordering.
Jan 13 '16 #4
I have not made any changes to this part of the DB. I also track maintenance and have been working on that some but different forms and tables.

I am using Access within Office 365.

There is only 1 control, a combo named State whose control source is State which is a field in the tblTripDetails which is the record source for the form.

The row source for the combo is:
Expand|Select|Wrap|Line Numbers
  1. SELECT tlkpBorderStates.BorderState
  2. FROM tlkpBorderStates
  3. WHERE (((tlkpBorderStates.State)="varState"))
  4. ORDER BY tlkpBorderStates.BorderState;
I also have a table tlkpStates which I just realized that I probably no longer need. It was the original states table for the purpose of verifying proper abbreviations. I later added the tlkpBorderStates to limit the choices to actual bordering states to be sure there were no state line crossings missed.

There is a one to many relationship between the tlkpStates and tblTripDetails. Enforce referential integrity, cascade update and delete.

There is a one to many relationship between the tlkpStates and tlkpBorderStetes. Enforce referential integrity, cascade update and delete.

I'm beginning to think I should get rid of the tlkpStates table and have no relationship between tblBorderStates and tblTripDetails since the state is stored in tblTripDetails and tlkpBorderStates only serves to assure accurate data entry.

The events do have to be entered in order since I'm also tracking loaded and empty miles and there are calculations and load status changes going on in the background as data is entered.

I know it's a bit long but I wanted to try to fully explain.
Thanks!
Jan 13 '16 #5
zmbd
5,501 Expert Mod 4TB
I would remove the cascade delete option in the table relationships. I've had this given me problems with "missing" data in the related tables used for row_sources. This may not be the solution to your particular situation; however, it shouldn't hurt.

You'd be surprised how much damage that cascade delete can cause to the data records.

Before you go removing the tables have a read thru:
home > topics > microsoft access / vba > insights > database normalization and table structures
Jan 14 '16 #6
jforbes
1,107 Expert 1GB
I would also agree that the Cascade Delete is the most likely suspect. They need to be handled with care. Not only that, Cascading Deletes don't generally fit in with mostly static lists like States, so you probably will never need it. It's not like States destroyed very often. =)

Personally, I would remove the Cascading Update as well, but that would just be a personal preference, and I could see why you would want to keep it.
Jan 14 '16 #7

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

Similar topics

4
by: Dave Smithz | last post by:
Hi there, When filling out a web form on a php page that is submitted to a search which lists the results based on the criteria provided (in the form), all works fine and as expected. ...
1
by: M Wells | last post by:
Hi All, Further to my previous long-winded question about a situation in which we appear to be mysteriously losing data from our mssql2k server. We discovered an update statement, in the...
8
by: Ray Greene | last post by:
I was working in Access and everything disappeared from the screen. When I closed and reopened the file there was no switchboard. I can open tables and forms etc if I select a category from the...
12
by: Rob Nicholson | last post by:
We've implemented functionality to allow a user to download a document (any document type) from the IIS server using the following code: Response.Clear() Response.ContentType =...
0
by: 007 | last post by:
I made an application, with a form only. It has a large I/O (message Queues, TCP connections) data throughput. After a period of time running(1 or a few days), it disappeared(The process can not be...
1
by: Coleen | last post by:
Hi all :-) My post on weird date formatting disappeared from my list, so if this a duplicate post, I apologize. I'm having trouble getting a date to format as just "MM/dd" I don't care what...
3
by: Rob Dob | last post by:
SQLDataAdapter. ODBCDataAdapter etc. Have they disappeared from .Net 2.0 Webforms? can somone please elaborate as I cannot seem to find support for these..
2
by: Bahman | last post by:
Hello! Except for dropdownlists, all other controls have lost their postback call. The default postback call runs all the time. What would be the more likely cause for this? Thank you for...
8
by: Ryan | last post by:
Ok.. I have a form with lots of stuff on it; a tool strip panel, menu strip, data binding elements (dataset, binding source, table adapter), tab control with 7 tab pages, each page contains a...
3
by: wongwaichi | last post by:
Hi, everyone. I am not sure if i am writing in the correct group. But somehow it relates to MySQL, i hope someone can help me. I am working on a web site which is developed by PHP and MySQL,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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
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...

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.