dbTalk Databases Forums  

Trouble pulling data for a specific month

comp.databases.filemaker comp.databases.filemaker


Discuss Trouble pulling data for a specific month in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jerthebear
 
Posts: n/a

Default Trouble pulling data for a specific month - 11-01-2005 , 06:58 AM






Hey everyone, I hope you can help. I have created a simple database for
our clinic with medical codes and so forth. The Nurse needs to be able
to run a daily and monthly report. I have created a layout that
contains a count of each selected field. This will show the grand
total, but how can I set it up so she can get a count for only a
specified date range. Any help would be greatly appreciated! Thanks.


Reply With Quote
  #2  
Old   
Matt Wills
 
Posts: n/a

Default Re: Trouble pulling data for a specific month - 11-01-2005 , 03:45 PM






jerthebear wrote on (11/1/2005):

Quote:
Hey everyone, I hope you can help. I have created a simple database for
our clinic with medical codes and so forth. The Nurse needs to be able
to run a daily and monthly report. I have created a layout that
contains a count of each selected field. This will show the grand
total, but how can I set it up so she can get a count for only a
specified date range. Any help would be greatly appreciated! Thanks.
The find code for a range is "..."

For instance, to get all of the month just past, in your find, enter
10/1/2005...10/31/2005.

Of course, the Nurse would probably appreciate it if you scripted that
after he selected the desired month..

Matt

--



Reply With Quote
  #3  
Old   
Chris Brown
 
Posts: n/a

Default Re: Trouble pulling data for a specific month - 11-01-2005 , 06:37 PM



jerthebear wrote:
Quote:
Hey everyone, I hope you can help. I have created a simple database for
our clinic with medical codes and so forth. The Nurse needs to be able
to run a daily and monthly report. I have created a layout that
contains a count of each selected field. This will show the grand
total, but how can I set it up so she can get a count for only a
specified date range. Any help would be greatly appreciated! Thanks.

If you are using FM7/8 you can create a rel using multiple criteria:
two globals both pointing to your date target

g_DateFrom <= DATE
g_DateTo >= DATE

Alternately you can create a calc in the target table that returns the
month and year
Month(Date) &" " & Year (Date) & "¶" & Month(Date) & "¶" & Year(Date) &
"¶" & "All" & "¶"
this returns somthing like:
11 2005
11
2005
All

then use two globals to nominate the Month and year you want to return.
Attach a value list to the month global, using the following

All Months
-
1
2
3
4
5
6
7
8
9
10
11
12

and a VL ...
then use a rel to the calc
Apologies to who-ever/where-ever this came from a month or more ago
(from the web), but very useful little method


Chris Brown
University of Adelaide


Reply With Quote
  #4  
Old   
jerthebear
 
Posts: n/a

Default Re: Trouble pulling data for a specific month - 11-02-2005 , 05:49 AM



I am on FM6...so the above method would not work, correct?


Reply With Quote
  #5  
Old   
jerthebear
 
Posts: n/a

Default Re: Trouble pulling data for a specific month - 11-02-2005 , 05:51 AM



So I would create a script for each month and that is all that would be
in the script? If this is a stupid question, I apologize. I've kinda
been thrown into this.


Reply With Quote
  #6  
Old   
Remi-Noel Menegaux
 
Posts: n/a

Default Re: Trouble pulling data for a specific month - 11-02-2005 , 06:14 AM



I understand you didn't solve yet your problem.
I offered you (privately) to do it for you.
Do you still need help ?
I could send you an example, but you have to wish it.
(By the way there is nothing hard to do in it ...)
Remi-Noel

"jerthebear" <jerthebear (AT) gmail (DOT) com> a écrit dans le message de news:
1130849900.280272.24930 (AT) z14g200...oglegroups.com...
Quote:
Hey everyone, I hope you can help. I have created a simple database
for
our clinic with medical codes and so forth. The Nurse needs to be able
to run a daily and monthly report. I have created a layout that
contains a count of each selected field. This will show the grand
total, but how can I set it up so she can get a count for only a
specified date range. Any help would be greatly appreciated! Thanks.




Reply With Quote
  #7  
Old   
Matt Wills
 
Posts: n/a

Default Re: Trouble pulling data for a specific month - 11-02-2005 , 01:47 PM



jerthebear wrote on (11/2/2005):

Quote:
So I would create a script for each month and that is all that would be
in the script? If this is a stupid question, I apologize. I've kinda
been thrown into this.
You could do it that way, or you could do a single script with a custom dialog to ask what month is desired.

Matt


Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.