473,480 Members | 2,967 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Are all records retrieved

I have just completed a basic course in Access. I have some relational
b/g in DB2 and Cobol. I have a question my instructor couldn't answer
(or maybe I didn't explain myself)

I design a simple form that has data from one table. When I open this
form to display data, are all matching records retrieved into memory
rightaway even though only 1 record is displayed? So when I use
navigation keys to move forward (or back) is data being retrieved from
database or is it coming from memory?

Thanks

Mar 23 '06 #1
3 1822
<Ra******@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
I have just completed a basic course in Access. I have some relational
b/g in DB2 and Cobol. I have a question my instructor couldn't answer
(or maybe I didn't explain myself)

I design a simple form that has data from one table. When I open this
form to display data, are all matching records retrieved into memory
rightaway even though only 1 record is displayed? So when I use
navigation keys to move forward (or back) is data being retrieved from
database or is it coming from memory?

Thanks

A certain amount is retrieved but not all of it. For example, if your table
had 5000 rows in it, then normally you would not want to open a form based
on the unfiltered table. However, if you did, you might be surprised to
find how good performance was. The form will show you that it has 5000
records and you can scroll through them, but behind the scenes, Access is
doing some clever stuff.

If you wanted a test. Create a table with a few hundred rows and save this
back end data. Now create a new datatbase DB1 which has a single linked
table to it. Save and close the file and make a copy of it: DB2. Now you
can open up both front ends so you can see the first 10 or 20 records in the
table. Alter a column in DB1 and move to a new record. Then view DB2 and
notice the screen has not updated. Now go to DB1 and alter the last record.
When you switch back to DB2 and go to the last record - you will see the
same version. Does that make it clear what is happening?
Mar 23 '06 #2
Thanks
I think I get what you said. I initially tested this with an
underlying table that had only 200 rows. In this case when I changed
the last record in DB1 and navigated to the same last record in Db2 I
did not see the change.
This must be because since table is small Access had loaded whole thing
into memory and the change on last record in Db1 wouldn't have impacted
the last record in Db2 which is being displayed from memory.

When I tried to repeat the test with a much larger table (this had 5K
rows), I got a failure at the get go. When I changed a column on DB1
and tried to get to the next record, I received a message "No current
record". Which seems to be because

"This error occurs after the unsuccessful application of one of the
Find methods or the Seek method, when the underlying Recordset contains
no records or the record has been deleted. Move to or select another
record, and try the operation again. If the Recordset is empty, you
cannot position to a current record. Check the BOF and EOF properties."

I guess I will find the answer to this in a different thread.

But, the gist of what you are saying is if there are a large number of
records in the underlying table then since all are not loaded into the
memory in Db2 (unlike the case with 200 records) when I navigate to the
last record it is retrieving this from the database thus showing me
what was updated in DB1.

Does this apply only to linked tables or also to tables that are in the
database?

Mar 23 '06 #3

<Ra******@gmail.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...
Thanks
I think I get what you said. I initially tested this with an
underlying table that had only 200 rows. In this case when I changed
the last record in DB1 and navigated to the same last record in Db2 I
did not see the change.
This must be because since table is small Access had loaded whole thing
into memory and the change on last record in Db1 wouldn't have impacted
the last record in Db2 which is being displayed from memory.

When I tried to repeat the test with a much larger table (this had 5K
rows), I got a failure at the get go. When I changed a column on DB1
and tried to get to the next record, I received a message "No current
record". Which seems to be because

"This error occurs after the unsuccessful application of one of the
Find methods or the Seek method, when the underlying Recordset contains
no records or the record has been deleted. Move to or select another
record, and try the operation again. If the Recordset is empty, you
cannot position to a current record. Check the BOF and EOF properties."

I guess I will find the answer to this in a different thread.

But, the gist of what you are saying is if there are a large number of
records in the underlying table then since all are not loaded into the
memory in Db2 (unlike the case with 200 records) when I navigate to the
last record it is retrieving this from the database thus showing me
what was updated in DB1.

Does this apply only to linked tables or also to tables that are in the
database?

The errors that you are getting do not sound normal. I would start a new
database, then import the old table into the new database and do a compact
and repair.
Apart from that, you seem to have understood exactly what I am saying -
although I don't have any precise facts or figures for you.
I used the example of linked tables, because that is generally the area of
concern. A multi-user database where you are worried if the data you see on
your screen matches what your colleague next door see on his. But the same
thing is true of local tables: you could show this by creating two forms
based on the same table, opening then at the same time and experimenting by
editing the records.
Mar 23 '06 #4

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

Similar topics

6
2103
by: Damon Grieves | last post by:
Hi I just want to be sure I understand how the Access client works. If I have an Access back end with a million records on a server and an Access client. If the client is installed on the users pc...
5
1805
by: chrisc | last post by:
Hello, Hope this is the right place for this... I am creating a testing database for components as they come off a production line. My reports need to select faults that are found, as well...
3
2259
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...
4
1991
by: Darrel | last post by:
I'm creating a table that contains multiple records pulled out of the database. I'm building the table myself and passing it to the page since the table needs to be fairly customized (ie, a...
8
1442
by: Neil | last post by:
I am running an Access 2000 MDB against a SQL 7 back end, using ODBC linked tables over a LAN and a WAN. The system has been operational for years with relatively few problems. Recently, WAN...
0
1406
by: Ohad Weiss | last post by:
Hi all, I've once asked about that topic. but didn't get an answer. I have a dataset based on 4 tables, which have relation between them. The main table presented to the user on textboxes...
4
3206
by: LetMeDoIt | last post by:
Greetings, I'm using ASP to retrieve from MSSQL and I then populate a table. After several months of successfull retrieves, this same code now bombs out. It turns out that if I clear out from...
3
1843
by: Jejune | last post by:
I'd like to thank snavebelac for his help so far in this problem. I'm am working with ASP and I'm am filtering results from an Access DB. I have the season, year and designer stored in the...
1
7239
by: xraive | last post by:
I have a problem with this. Currently I am trying Allen's code and i am not successful. Current Design Table1 (Main Form) TravelID (PK) ApprovedBY EntreredBy BudgetCode ExpenseCode
0
6904
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
7037
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7080
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6735
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
6895
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...
1
4770
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...
0
4476
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1296
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
558
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.