PC Review


Reply
Thread Tools Rate Thread

Detecting and acting on End of Table

 
 
JHB
Guest
Posts: n/a
 
      7th Nov 2007
Hi:

I have an Access macro that moves down one record through a table when
the user presses enter.

My problem is that when the last record in the table is reached, and
the user presses enter, the macro tries to move to another record and
the result is an error condition. I would like some guidance in how to
dectect that one is in the last record of a table (or that the table
has no more records). Preferably using Access Macro language (which is
what I have used) but any way to do it within program control would
be appreciated.

Thanks in advance

John Baker

 
Reply With Quote
 
 
 
 
JHB
Guest
Posts: n/a
 
      7th Nov 2007
I should have indicated that I am using Access 2000, which may have
some influence on your response.



On Nov 7, 6:45 am, JHB <BakerJo...@gmail.com> wrote:
> Hi:
>
> I have an Access macro that moves down one record through a table when
> the user presses enter.
>
> My problem is that when the last record in the table is reached, and
> the user presses enter, the macro tries to move to another record and
> the result is an error condition. I would like some guidance in how to
> dectect that one is in the last record of a table (or that the table
> has no more records). Preferably using Access Macro language (which is
> what I have used) but any way to do it within program control would
> be appreciated.
>
> Thanks in advance
>
> John Baker



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access 2007 linked table acting weird Beginner Microsoft Access 2 22nd May 2008 04:38 AM
Table of Contents Function acting up Rescueme Microsoft Word Document Management 1 10th Jan 2008 05:39 AM
Detecting and Empty Query Result and acting on it! JHB Microsoft Access 4 20th Aug 2007 12:26 AM
Detecting Changes in Database Table from app Dave.Womer@gmail.com Microsoft ADO .NET 1 10th Aug 2007 02:04 PM
Detecting Table Locks? jfer Microsoft ADO .NET 13 9th Jan 2007 06:09 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:41 AM.