Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / March 2005

Tip: Looking for answers? Try searching our database.

date option sort

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roy - 03 Mar 2005 10:05 GMT
i got a table with the fields: Week Code, Start date, End date
the table keeps a forecast, sow today i forecast for 3 mouth later..
what i want now is: when opening the forms, go to week code where date() is
inside "start date" and "finish date", sow i can view current week.
do you know how to do it in basic code(or any other way).
P.S.: i don't want a form with 1 record only, sow can't use any query.

thanks
John Vinson - 03 Mar 2005 18:13 GMT
>i got a table with the fields: Week Code, Start date, End date
>the table keeps a forecast, sow today i forecast for 3 mouth later..
>what i want now is: when opening the forms, go to week code where date() is
>inside "start date" and "finish date", sow i can view current week.
>do you know how to do it in basic code(or any other way).
>P.S.: i don't want a form with 1 record only, sow can't use any query.

You can and should use a query; if you assume that doing so gives you
a form with only one record, that assumption is simply incorrect. A
query can return zero records, one record, 23,319,427 records or as
many records as exist in the table.

Base the Form on a Query with a criterion of

>= Date()

on [Start Date]

and

<= Date()

on [End Date]. If there are a dozen records in that range, you'll see
all of them in the form.

                 John W. Vinson[MVP]    
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.