undefeatedskillz26
Registered User.
- Local time
- Today, 17:14
- Joined
- Nov 26, 2014
- Messages
- 51
I have a query which is used to pull data from 2 tables. A few things I am looking to do.
1. Only show the records that have 2 or more same Pat#, FName and LName. If it is a single record I would like to hide it.
2. Need to see the different dates amd know the difference.
Currently Query Looks like this.
Pat# FName LName Reason Status Date
00001 John Doe 1 1 11/13/2014 00002 Sally Doe 2 1 11/25/2014
00003 Bill Bates 1 1 11/04/2014
00003 Bill Bates 2 1 11/07/2014
00004 Jenny West 1 1 04/03/2014
00004 Jenny West 2 1 04/10/2014
The Signup reason number 1 represents the signup date and number 2 represents the time they left. SignupStatus number 1 represents a group.
So I am hoping my end goal it would look something like this.
Pat# FName LName Date 1 Date 2 Difference
00003 Bill Bates 11/04/2014 11/07/2014 3 Days
00004 Jenny West 04/03/2014 04/10/2014 7 days
I am afraid at my age I do not know much coding so I am trying to avoid using VBA or SQL. Honestly I do not know where to input it. I have no other choice I guess I am forced to do it as long as I know where to put the code.
I think if use criteria in the query it can help. Maybe expression builder as well. I tried to use the “Find Duplicates” query wizard but this did not help because it finds duplicates like last name first name, but it does not separate the dates. Can someone please help. I can give you my cell number as well just trying to understand this without getting frustrated. Thanks for any help anyone can do. Much appreciated.
P.S - If I am not clear please ask questions I will be online to answer anything I can. I am using MS Access 2010. Many many thanks everyone.
1. Only show the records that have 2 or more same Pat#, FName and LName. If it is a single record I would like to hide it.
2. Need to see the different dates amd know the difference.
Currently Query Looks like this.
Pat# FName LName Reason Status Date
00001 John Doe 1 1 11/13/2014 00002 Sally Doe 2 1 11/25/2014
00003 Bill Bates 1 1 11/04/2014
00003 Bill Bates 2 1 11/07/2014
00004 Jenny West 1 1 04/03/2014
00004 Jenny West 2 1 04/10/2014
The Signup reason number 1 represents the signup date and number 2 represents the time they left. SignupStatus number 1 represents a group.
So I am hoping my end goal it would look something like this.
Pat# FName LName Date 1 Date 2 Difference
00003 Bill Bates 11/04/2014 11/07/2014 3 Days
00004 Jenny West 04/03/2014 04/10/2014 7 days
I am afraid at my age I do not know much coding so I am trying to avoid using VBA or SQL. Honestly I do not know where to input it. I have no other choice I guess I am forced to do it as long as I know where to put the code.
I think if use criteria in the query it can help. Maybe expression builder as well. I tried to use the “Find Duplicates” query wizard but this did not help because it finds duplicates like last name first name, but it does not separate the dates. Can someone please help. I can give you my cell number as well just trying to understand this without getting frustrated. Thanks for any help anyone can do. Much appreciated.
P.S - If I am not clear please ask questions I will be online to answer anything I can. I am using MS Access 2010. Many many thanks everyone.