473,405 Members | 2,415 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,405 software developers and data experts.

Records disappear from table

Hi,

I am running Access 2000.

I have an application with a web-based front end which accesses an Access
back end using ASP (not .Net). It is being used by two groups of people -
identical web pages and database structure, just different data in the two
databases. In one of them, the first four records disappeared at one
point. In the other, one record (the same record) occasionally disappears.

There is nothing in any of the scripting that deletes anything from this
table - records get marked inactive via an attribute rather than being
deleted. The web forms and associated scripts only add new records or
change attribute values in existing records.

Can anyone offer any clues at all as to why/how these records may be
getting deleted? It is possible that the records are being deleted when a
new record is added, but the records which get deleted are not the most
recent record created. I have been wracking my brain but haven't been able
to figure it out.

Here's the code I'm using to add a new record:

qryID = "Select MAX(SSN) AS ID from tlkpEmployees"
Set rsNewID = Server.CreateObject("ADODB.RecordSet")
rsNewID.Open qryID, connTravel, 3, 3
strID = rsNewID("ID")
strID = strID + 1

' open recordset
Set rsTravelUser = Server.CreateObject("ADODB.RecordSet")
rsTravelUser.Open "tlkpEmployees", connTravel, 3, 3

'insert data into lookup table
rsTravelUser("FName") = Request.Form("FName")
rsTravelUser("LName") = Request.Form("LName")
rsTravelUser("Password") = Request.Form("Password")
rsTravelUser("SSN") = strID
rsTravelUser("Email") = Request.Form("Email")
rsTravelUser("ActNo") = Request.Form("actno")
rsTravelUser("Phone") = Request.Form("phone")
rsTravelUser("MailCode") = Request.Form("mailcode")
'ID and RecordedOn date are inserted by the database
rsTravelUser.update
Nov 13 '05 #1
1 3604
Ardith,
It is impossible to say whether records disappear -- there might be a
thousand reasons. If you can say specifically what you tried and what
the result different from what was expected, you might get a reply.
Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: HB Kim | last post by:
Hello, What could possibly cause data in the SQL server database to be removed, except being deleted manually? We had a couple of situations where data in certain records disappeared although the...
10
by: salamol | last post by:
I has a strange question. My company is using a old system with Win NT 4.0 Server + MS SQL 7.0. The system is busy and handle a lot of SELECTs and INSERTs all the time. Sometimes, some...
8
by: tom | last post by:
I am new to SQL administration. >From a list of IDs that are the primary key in one table (i.e. Customer Table), I want to make changes in tables that use those IDs as a foreign key. ...
10
by: heromull | last post by:
We have an asp.net app with about 200 data entry forms. Customers may enter data into any number of forms. Each form's data is persisted in a corresponding sql table. When data entry is...
3
by: VMI | last post by:
How can I get the bottom N records from an Access table and store them in my DataTable? For example, in my Access table with 2000 records, if I want to display records 151-200 (with ID as PK), my...
6
by: Kurosagi85 | last post by:
i need help and its urgent... i have created a table with fields: ItemNo, ItemName, IncomingStocks and also DateReceived. The IncomingStocks and DateReceived are volatile. it is expected to...
1
by: Jordan555 | last post by:
I have many records within a table which are repetative (they contain the same information, only many times). I would like to merge them based on certain criteria (fields), so that the repeats...
11
by: shriil | last post by:
Hi I have this database that calculates and stores the incentive amount earned by employees of a particular department. Each record is entered by entering the Date, Shift (morn, eve, or night)...
8
by: jmarcrum | last post by:
Hello all, i have a continuous form that displays about 1000 records and opens when I click a button. When the form opens, the user has the option of checking a checkbox that is located beside...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.