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  

How can I sort information in a form by the year?



 
 
Thread Tools Display Modes
  #1  
Old April 14th, 2005, 04:26 PM
curtis-hpincalgary
external usenet poster
 
Posts: n/a
Default How can I sort information in a form by the year?

I am working with a form created years ago that you enter information into to
book different tours. What I want to know to do is to be able to scroll
through the form and only have the current years information, but I also want
to be able to have the past information saved somewhere so that I can still
go back to it if need be. Can I make multiple files within the form or can I
save it somehow and clear the form each year?
  #2  
Old April 14th, 2005, 04:54 PM
Ofer
external usenet poster
 
Posts: n/a
Default

Just change the recordsource of your form with a different
filter for the year.

Private Sub Form_Load()
me.recordsource="Select * From MyTable Where
TableYear= " & YearParm
end sub


-----Original Message-----
I am working with a form created years ago that you enter

information into to
book different tours. What I want to know to do is to be

able to scroll
through the form and only have the current years

information, but I also want
to be able to have the past information saved somewhere

so that I can still
go back to it if need be. Can I make multiple files

within the form or can I
save it somehow and clear the form each year?
.

  #3  
Old April 14th, 2005, 05:17 PM
curtis-hpincalgary
external usenet poster
 
Posts: n/a
Default

Can anybody put the last message into simpler terms for me or suggest a
different way that I might be able to understand. I'm not very
electronically inclined. To me, it looks like entering code and i don't know
where to do that in Access. Thanks again


"Ofer" wrote:

Just change the recordsource of your form with a different
filter for the year.

Private Sub Form_Load()
me.recordsource="Select * From MyTable Where
TableYear= " & YearParm
end sub


-----Original Message-----
I am working with a form created years ago that you enter

information into to
book different tours. What I want to know to do is to be

able to scroll
through the form and only have the current years

information, but I also want
to be able to have the past information saved somewhere

so that I can still
go back to it if need be. Can I make multiple files

within the form or can I
save it somehow and clear the form each year?
.


 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Query Only Creent Record? Hulk Running & Setting Up Queries 10 January 25th, 2005 06:39 PM
open a form through a subform in access 2000 Tammy Setting Up & Running Reports 12 October 22nd, 2004 02:43 PM
Strange stLinkCriteria behaviour on command button Anthony Dowd Using Forms 3 August 21st, 2004 03:01 AM
synchronizing form and list box Deb Smith Using Forms 8 June 21st, 2004 08:15 PM


All times are GMT +1. The time now is 09:05 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.