PC Review


Reply
Thread Tools Rate Thread

Access Form_Record Persistance

 
 
Jagstrom
Guest
Posts: n/a
 
      14th Nov 2008
When I open my form I would like to be at the last record viewed
instead of always starting at the 1st record. Any easy ways to
accomplish this?
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      14th Nov 2008
No easy way.

You'd need to create a table to which you'd write the details of the current
record in the form's Unload event, and then read that table and navigate to
the record in the form's Load event.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Jagstrom" <(E-Mail Removed)> wrote in message
news:684d4e69-573f-4f66-988c-(E-Mail Removed)...
> When I open my form I would like to be at the last record viewed
> instead of always starting at the 1st record. Any easy ways to
> accomplish this?



 
Reply With Quote
 
mscertified
Guest
Posts: n/a
 
      14th Nov 2008
Well first you need to store the last record viewed somewhere. And if this is
a multi-user database there might be many 'last viewed' records so you'd need
to store for each user. Then there is the possibility that the last record
you viewed got deleted by someone else so its no longer there.

So you would store the primary key of the last record viewed in a table and
then in the form open event you would retrieve this key and then read the
record. If the record still exists you would do a docmd.gotorecord to
position to it.
Of course in the form close event you must again replace the last viewed
record with the new one.

-Dorian

"Jagstrom" wrote:

> When I open my form I would like to be at the last record viewed
> instead of always starting at the 1st record. Any easy ways to
> accomplish this?
>

 
Reply With Quote
 
a a r o n . k e m p f @ g m a i l . c o m
Guest
Posts: n/a
 
      16th Nov 2008
Store _ALL_ your variables in a table / tables instead of passing them
around.

I've followed this strategy, almost exclusively for a long long long
time.

-Aaron






On Nov 14, 12:03*pm, Jagstrom <saebfy...@yahoo.com> wrote:
> When I open my form I would like to be at the last record viewed
> instead of always starting at the 1st record. *Any easy ways to
> accomplish this?


 
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
XmlSerializer and Persistance Trecius Microsoft C# .NET 1 24th Jan 2008 12:34 AM
Persistance CCORDON Microsoft VB .NET 6 29th Dec 2004 01:12 PM
Help with persistance CCORDON Microsoft ASP .NET 1 29th Dec 2004 03:20 AM
Property Persistance =?Utf-8?B?RGFpc3VrZQ==?= Microsoft Dot NET Framework Forms 3 19th Nov 2004 05:37 PM
Persistance Dag Johansen Microsoft Excel Programming 1 23rd Sep 2003 04:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:33 PM.