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

Search up and search down behave differently when using Find?

I have an almost-ready-to-install database with one problem. Data is
displayed chronologically, and when the user goes to the last record
and searches up to get most recent results, he often encounters a
critical error and the whole thing shuts down, often with no message at
all. (So often that I wasn't able to capture a message before writing
this.)

Testing on my machine doesn't cause a shutdown, but I do notice that
searching up haves differently than than searching all or searching
down, and I get a lot of flashing of subforms on the screen. I should
mention that the form is quite comlicated, with about a half dozen
subforms. One of those subforms has a nested subsubform, and another
is an unbound subform control that is assigned one of several source
objects depending on what's happening in a different subform.

One "solution" to the problem is along the lines of that old joke with
the guy stretching his arm behind his head while complaining to the doc
that "It hurts when I do this." To which the doc replies: "Then don't
do that." In this case, the user can do a descending sort and then
search down. I can, of course, also give him the option of making
descending sort the default.

But I'd really like to know if anyone has insights into this search up
business.

pemigh

Nov 13 '05 #1
2 1346
I've discovered that the problem is actually more general than this.

When navigating through records from the bottom up, I can move up one
record at a time without causing problems. But I have the same
problems described in the original posting if I try to 1) jump to the
top using the "first record" button or 2) move up a few or many records
by filling in the "record number" slot.

Any ideas on why Access prefers moving down to moving up through
records??

pemigh

Nov 13 '05 #2
I got it!

Through the process of elimination, I located the bottleneck. It's not
complex code, or all the subforms, per se. Rather, it's using the Link
Parent/Child Fields feature on one of the subforms. I already had the
subform recordsource criteria set to limit records to those that match
the main form. I set the default value for the foreign key in the
subform to the primary key in the main form. I expected to need a
subform requery for the main form's "on current" event, but it's
staying in synch on its own. (I looked through code and couldn't find
a reason for that. But at this point I'm just happy it works.)

pemigh

Nov 13 '05 #3

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

Similar topics

10
by: Anand Pillai | last post by:
To search a word in a group of words, say a paragraph or a web page, would a string search or a regexp search be faster? The string search would of course be, if str.find(substr) != -1:...
7
by: Zhang Weiwu | last post by:
Hello. This is problem puzzled me a long time. I wish to organize some block elements and let them flow one after each other like text. Think about a album, I wish the album have 12 thumbnails,...
1
by: Codemonkey | last post by:
Hi, Sorry for the cross group post, but I couldn't find a group that deals with threading in .net. Anyway, I've noticed a difference in the way my program acts on Windows 98 than it does on...
1
by: disaia | last post by:
2 problems: Example: If a person types in a part number into Yahoo: 1. Is there a way for Yahoo to list your web site as one of the results. 2. If the user clicks on your link, can your web...
3
by: Colleyville Alan | last post by:
I have a incremental search box that has been working fine for a couple of months but is now acting up. This search box is from the cd that comes with Getz's book, so I did not write it and have...
5
by: pembed2003 | last post by:
Hi all, I need to write a function to search and replace part of a char* passed in to the function. I came up with the following: char* search_and_replace(char* source,char search,char*...
32
by: tshad | last post by:
Can you do a search for more that one string in another string? Something like: someString.IndexOf("something1","something2","something3",0) or would you have to do something like: if...
1
by: Mike Mascari | last post by:
This is a really trivial question, but I'm curious. Why do subselects in target lists behave differently than simple queries? Ex: create temporary table bar (key varchar(32) not null);...
5
by: TC | last post by:
I use Visual Studio 2005 v8.0 on two different computers. On one, the "Find and Replace" dialog gives me the option to look in the "Entire Solution". On the other computer, the "Find and Replace"...
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: 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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.