A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Navigating on forms...



 
 
Thread Tools Display Modes
  #1  
Old November 4th, 2007, 03:29 PM posted to microsoft.public.access.forms
magmike
external usenet poster
 
Posts: 233
Default Navigating on forms...

Is there a way to make your form operate like a browser with a forward
& back button?

And I don't mean sequentially through the records the form is bound
through, but as far as history, or visited records per se.

For example, I do a search on my form and pull up Acme Printing
(record # 103). While looking at their record, I get a phone call from
Johnson Marine (record # 671), so I therefore go to their record on
the form. Once done with call and their record on the form, I simply
hit the "Back Button" to return to Acme Printing.

Thanks in advance for you help.

magmike

  #2  
Old November 4th, 2007, 04:30 PM posted to microsoft.public.access.forms
tina
external usenet poster
 
Posts: 1,997
Default Navigating on forms...

there's no built-in way to do it, but you could probably set up your own
system. i've never tried it, but you create a "history" table, to hold the
form table's primary key value. then add code to the form's Current event
procedure, to write the current record's primary key value to the history
table. set your back button to do a Find where the form's primary key = the
value in the history table.

that would give you a simple "go back one" action. with more work and
thought, you might be able to expand the history to multiple records, and
hold "x" number of records in the history table between sessions.

hth


"magmike" wrote in message
ups.com...
Is there a way to make your form operate like a browser with a forward
& back button?

And I don't mean sequentially through the records the form is bound
through, but as far as history, or visited records per se.

For example, I do a search on my form and pull up Acme Printing
(record # 103). While looking at their record, I get a phone call from
Johnson Marine (record # 671), so I therefore go to their record on
the form. Once done with call and their record on the form, I simply
hit the "Back Button" to return to Acme Printing.

Thanks in advance for you help.

magmike



  #3  
Old November 4th, 2007, 05:54 PM posted to microsoft.public.access.forms
magmike
external usenet poster
 
Posts: 233
Default Navigating on forms...

On Nov 4, 10:30 am, "tina" wrote:
there's no built-in way to do it, but you could probably set up your own
system. i've never tried it, but you create a "history" table, to hold the
form table's primary key value. then add code to the form's Current event
procedure, to write the current record's primary key value to the history
table. set your back button to do a Find where the form's primary key = the
value in the history table.

that would give you a simple "go back one" action. with more work and
thought, you might be able to expand the history to multiple records, and
hold "x" number of records in the history table between sessions.

hth

"magmike" wrote in message

ups.com...



Is there a way to make your form operate like a browser with a forward
& back button?


And I don't mean sequentially through the records the form is bound
through, but as far as history, or visited records per se.


For example, I do a search on my form and pull up Acme Printing
(record # 103). While looking at their record, I get a phone call from
Johnson Marine (record # 671), so I therefore go to their record on
the form. Once done with call and their record on the form, I simply
hit the "Back Button" to return to Acme Printing.


Thanks in advance for you help.


magmike- Hide quoted text -


- Show quoted text -


- Or perhaps on the id field's OnUpdate? What exactly does OnCurrent
cover?

Or, perhaps - add a "lastvisited" field to the primary table, and then
the back button would resort the form based on lastvisited DESC? If
you think that's a decent idea, how would you go about updating that
field with the current date/time when the record is brought into the
form?

  #4  
Old November 4th, 2007, 06:36 PM posted to microsoft.public.access.forms
Douglas J. Steele
external usenet poster
 
Posts: 9,313
Default Navigating on forms...

The Current event fires every time a different record in the form's
underlying recordset becomes active (i.e.: becomes the current record),
whereas the Update event only fires when you make a change to the data in
the current record. Therefore the Current event would be the correct one.

Putting a last visted field in the primary table would be a mistake, since
that would cause problems if you had more than one concurrent user for your
application.

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


"magmike" wrote in message
oups.com...

- Or perhaps on the id field's OnUpdate? What exactly does OnCurrent
cover?

Or, perhaps - add a "lastvisited" field to the primary table, and then
the back button would resort the form based on lastvisited DESC? If
you think that's a decent idea, how would you go about updating that
field with the current date/time when the record is brought into the
form?

On Nov 4, 10:30 am, "tina" wrote:
there's no built-in way to do it, but you could probably set up your own
system. i've never tried it, but you create a "history" table, to hold
the
form table's primary key value. then add code to the form's Current event
procedure, to write the current record's primary key value to the history
table. set your back button to do a Find where the form's primary key =
the
value in the history table.

that would give you a simple "go back one" action. with more work and
thought, you might be able to expand the history to multiple records, and
hold "x" number of records in the history table between sessions.

hth

"magmike" wrote in message

ups.com...



Is there a way to make your form operate like a browser with a forward
& back button?


And I don't mean sequentially through the records the form is bound
through, but as far as history, or visited records per se.


For example, I do a search on my form and pull up Acme Printing
(record # 103). While looking at their record, I get a phone call from
Johnson Marine (record # 671), so I therefore go to their record on
the form. Once done with call and their record on the form, I simply
hit the "Back Button" to return to Acme Printing.




  #5  
Old November 4th, 2007, 06:41 PM posted to microsoft.public.access.forms
magmike
external usenet poster
 
Posts: 233
Default Navigating on forms...

On Nov 4, 12:36 pm, "Douglas J. Steele"
wrote:
The Current event fires every time a different record in the form's
underlying recordset becomes active (i.e.: becomes the current record),
whereas the Update event only fires when you make a change to the data in
the current record. Therefore the Current event would be the correct one.

Putting a last visted field in the primary table would be a mistake, since
that would cause problems if you had more than one concurrent user for your
application.

--
Doug Steele, Microsoft Access MVPhttp://I.Am/DougSteele
(no private e-mails, please)

"magmike" wrote in message

oups.com...





- Or perhaps on the id field's OnUpdate? What exactly does OnCurrent
cover?


Or, perhaps - add a "lastvisited" field to the primary table, and then
the back button would resort the form based on lastvisited DESC? If
you think that's a decent idea, how would you go about updating that
field with the current date/time when the record is brought into the
form?


On Nov 4, 10:30 am, "tina" wrote:
there's no built-in way to do it, but you could probably set up your own
system. i've never tried it, but you create a "history" table, to hold
the
form table's primary key value. then add code to the form's Current event
procedure, to write the current record's primary key value to the history
table. set your back button to do a Find where the form's primary key =
the
value in the history table.


that would give you a simple "go back one" action. with more work and
thought, you might be able to expand the history to multiple records, and
hold "x" number of records in the history table between sessions.


hth


"magmike" wrote in message


roups.com...


Is there a way to make your form operate like a browser with a forward
& back button?


And I don't mean sequentially through the records the form is bound
through, but as far as history, or visited records per se.


For example, I do a search on my form and pull up Acme Printing
(record # 103). While looking at their record, I get a phone call from
Johnson Marine (record # 671), so I therefore go to their record on
the form. Once done with call and their record on the form, I simply
hit the "Back Button" to return to Acme Printing.- Hide quoted text -


- Show quoted text -


Thanks. I'd probably have done it that way.

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:35 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.