Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

count the no. of record on a particular date and time


This topic is 4824 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

pls help me in a function:

i have some record on a particular day field and time field, such as- on 8/11/2011 2:00am.

Suppose on this date and time, i have 4 appointments . Now how would i count the no of record on this date & time with the help of function.. every appointment has a id.

Please reply soon.

Posted

Create another occurrence of your table (duplicate it in the graph). Maybe call it 'Same Appt'. Create a summary field called sCountAppts, which is count of any field never empty, such as your AppointmentID. Join as:

Appointments::Date = Same Appt::Date

and

Appoints::Time = Same Appt::Time

Place the sCountAppts field from Same Appt directly on your Appointments layout.

Now, why do you want to count them? If you need to search for > 1 for instance, you cannot search the summary field. You would instead need to create a calculation in your parent table which brings us to the question of why you need to know. If it is to find double bookings, you might consider stopping them before they happen. If this is a one-time thing, our response would be different than if this was an on-going need. One-time things, we would probably loop. On-going need, we might suggest a more permanent build.

Purpose for the need? :^)

Posted

I just thought of something ... are appointments only one second each? If not then what if someone has appointment on Friday at 10:00 AM and someone else has appointment on Friday at 10:15 AM or 10:10 AM? Might you not want to consider a range instead of exact-time join? Otherwise, no two appointments will match to the exact second.

struck out typo

Posted

I just thought of something ... are appointments only one second each? If not then what if someone has appointment on Friday at 10:00 AM and someone else has appointment on Friday at 10:15 AM or 10:10 AM? Might you not want to consider a range instead of exact-time join? Otherwise, no two appointments will match to the exact second.

struck out typo

Create another occurrence of your table (duplicate it in the graph). Maybe call it 'Same Appt'. Create a summary field called sCountAppts, which is count of any field never empty, such as your AppointmentID. Join as:

Appointments::Date = Same Appt::Date

and

Appoints::Time = Same Appt::Time

Place the sCountAppts field from Same Appt directly on your Appointments layout.

Now, why do you want to count them? If you need to search for > 1 for instance, you cannot search the summary field. You would instead need to create a calculation in your parent table which brings us to the question of why you need to know. If it is to find double bookings, you might consider stopping them before they happen. If this is a one-time thing, our response would be different than if this was an on-going need. One-time things, we would probably loop. On-going need, we might suggest a more permanent build.

Purpose for the need? :^)

Create another occurrence of your table (duplicate it in the graph). Maybe call it 'Same Appt'. Create a summary field called sCountAppts, which is count of any field never empty, such as your AppointmentID. Join as:

Appointments::Date = Same Appt::Date

and

Appoints::Time = Same Appt::Time

Place the sCountAppts field from Same Appt directly on your Appointments layout.

Now, why do you want to count them? If you need to search for > 1 for instance, you cannot search the summary field. You would instead need to create a calculation in your parent table which brings us to the question of why you need to know. If it is to find double bookings, you might consider stopping them before they happen. If this is a one-time thing, our response would be different than if this was an on-going need. One-time things, we would probably loop. On-going need, we might suggest a more permanent build.

Purpose for the need? :^)

Thanks friend...it worked....

This topic is 4824 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.