• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 473
  • Last Modified:

DBNavigator next button problem

I'm using dbNavigator to go through the results of my Query.  The next and back buttons will be enabled even when there is no next or previous record to go to until it gets to a non-existent record.  

For example if I'm on the last record of my result set the next button is still enabled (which I don't want it to be) when I click it the button freezes for a second or two then disables itself.  The back button does the same thing except there is no pause trying to go back farther than it can.  Any idea why this is happening or how to fix it?  
0
ICPooreman
Asked:
ICPooreman
  • 3
  • 2
1 Solution
 
Eddie ShipmanAll-around developerCommented:
I do not see that behavior, what DB are you using?
0
 
ICPooremanAuthor Commented:
I'm using BDE with DBase Table
0
 
Eddie ShipmanAll-around developerCommented:
Do a First and then Last just after opening the table. Sometimes, the BDE got real goofy with
it's BOF and EOF markers.
0
 
ICPooremanAuthor Commented:
Well The first and last controls work properly but using them when I open the table doesn't change how the previous and next buttons work.  

Also whats really weird is the pause I experience on the last next is dependent on the type of query I do.  For example if I'm sorting through records generated by the query
Select * From TableName Where Value between '000' and '999' I get no pause on the last next hit.
but if the query looks like
Select * From TableName Where Value like '0%'
I'll get a pause when I'm on the last record and hit next.

I don't know if that helps or makes it more confusing.
0
 
Eddie ShipmanAll-around developerCommented:
That is not what I meant.

I meant something like this:

Query1.DisableControls;
Query1.Open;
Query1.Last;
Query1.First;
Query1.EnableControls;

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now