Thank you, this is very helpful. I don't want to abuse of your kindness, but I would like to ask you if you can explain also how the Min(MembId2) and Min(TermDate) work in this case.
Cgarmas
George,
I wanted to thank you for your help and all the work you put on this, I had to abandon this project for a while but I finally got back to it and got the results I needed from the code you developed. I only have one question though, just to try to understand how the code works, how does...
The expected results would be as follows>
rows with empty TermDate cells are because these members are still enroll.
As I am interested in the enrollment segments based on the unique MemberID, those segments with enrollment and terminartion date on the same day are to be ignored and excluded...
Yes, I identified the duplicate records. This data is a little tricky, In this database we have two fields that have MemberIDs, one is the MemberID, and MemberID2, the first one stores the unique ID for each member, but the same member may have multiple MemberID2.
The problem is that some times...
I excluded the records with NULL MemberID, but I got this message: "Violation of PRIMARY KEY constraint 'PK__@Data__571B2BD2'. Cannot insert duplicate key in object '#56270799'."
I got the following error message when I tried getting the data into the table variable.
"Cannot insert the value NULL into column 'UniqueId', table '@Data'; column does not allow nulls. INSERT fails.
I tried this approach, but due to the large number of records in the data set: over 500,000 records; to process this is taking several hours and is not done yet, and I am causing a problem to other people with the server. Is there any other way I can do this that can be more efficient in terms...
Hi all,
I am using MS SQL and I need help with creating a column were I can add a sequantial numbering of groups of records based on sequantial dates. The table structure is as follows
MemberID EnrollDate TermDate
001 01/01/2005 05/30/2005
001 07/01/2005 09/30/2005
001...
Hello everyone.
I desperately need help with this project, and I will appreciate any suggestions.
I have a Main form with a subform, which in turn has another subform with a tab control with other three forms in each tab. Each form corresponds to a separate table each. I set up this form to add...
Thanks again Leslie, and I do have more questions.
These are some of the tables I am creating and I am trying to figure out the best way to link them.
TblClients
ClientID
TblEnrollment
EnrollmentID
ClientID
EnrollmentNumber (first,second..)
EnrollmentDate
Prenatal/Postpartumperiod...
Leslie,
I think the suggestion of the Enrollment table is great, and the suggested reading was helpful, but I jus have one more question; would it be appropriate instead of having two tables, the clients table and the enrollment table to have just one table like this:
UniqueID PK (autonumber)...
Thanks for the reply, unfortunatelly this is a little bit more complicated because each patient whether they come to the clinic in their prenatal or posnatal care, they may enroll in the program multiple times for a new pregnancy or posnatal care, in which case we have a field EnrollmentNumber...
Hello all,
In our community health center we are building a database that collects prenatal care data and delivery data. To collect the prenatal care data we have two tables one for women who received prenatal care in our clinic (TblPrenatal) and another one for women who came to us after...
Thank you pampers for the reply, I checked the page order and it is in the order I needed it to be, as i said before I can navigate fine between the tabs, but after the first record the cursor tries to skip the third tab and get a message that can't get the focus to the 4th tab and jumps right...
Hello,
I am looking for help with a form that has a subform with a tab control. The main form has a subform with a multipage tab control, the first two pages of the tab control are based on one table wich I splited into two pages (this is linked to the main form based on Pk-Fk). There are three...
I have this code provided by TheAceMan1 in the AfterUpdate
Private Sub EnrollmentNumber_AfterUpdate()
Dim rst As DAO.Recordset, Criteria As String
Set rst = Me.RecordsetClone
Criteria = "[ClientID]='" & Me!Client_ID & "' AND " & _
"[EnrollNumber]='" &...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.