SharonInGeorgia wrote:
<snip>
> How can I prompt the user
> only one time and carry that date throughout the application. (Using the
> function Date () - days or months does not work since the report for January,
> February or March can be pulled anytime in the year)
Two simple ways you can handle this:
1) Create a "system" table to store the date entered. Alot of folks use
this kinda table to store things like the company name, address, etc.
It's just a table with a single row, and each field storing the
appropriate value. So after they enter the date format that you want,
you store it on the table, and then retrieve it from the table with a
DLookup on the reports.
2) Create two public procedures in a module. One which accepts the input
of the date as a parameter and stores it in a global variable, and the
second which returns that same value. Then call the retrieve function
when you want to see the date on your report.
I've given you the gist of it, but actual code. Hopefully this will put
in you in the right direction. Holler if you need more.
--
-D
Duncan Bachen
Director of I.T., Ole Hansen and Sons, Inc.
|