Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. cgarmas

    Add Sequential numbering of groups of records by date

    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
  2. cgarmas

    Add Sequential numbering of groups of records by date

    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...
  3. cgarmas

    Add Sequential numbering of groups of records by date

    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...
  4. cgarmas

    Add Sequential numbering of groups of records by date

    this is a good sample of duplicate situations. ----------------------------------------------- MemberID MembID2 EnrollDate TermDate 8187 1010602-00 19960109 8187 1010602-10 19960109 19970317 8187 1003533-11 19980128 19990505 8187 1003533-11 19990506 20000731 16978...
  5. cgarmas

    Add Sequential numbering of groups of records by date

    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...
  6. cgarmas

    Add Sequential numbering of groups of records by date

    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'."
  7. cgarmas

    Add Sequential numbering of groups of records by date

    You are right, there were some records that have a NULL value for MemberID
  8. cgarmas

    Add Sequential numbering of groups of records by date

    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.
  9. cgarmas

    Add Sequential numbering of groups of records by date

    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...
  10. cgarmas

    Add Sequential numbering of groups of records by date

    Thank you George, I'll try this first thing in the morning.
  11. cgarmas

    Add Sequential numbering of groups of records by date

    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...
  12. cgarmas

    Adding new record not working

    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...
  13. cgarmas

    Table dilema

    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...
  14. cgarmas

    Table dilema

    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)...
  15. cgarmas

    Table dilema

    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...
  16. cgarmas

    Table dilema

    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...
  17. cgarmas

    Form with tab controls

    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...
  18. cgarmas

    Form with tab controls

    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...
  19. cgarmas

    Form/subform focus

    Thanks a lot PH that worked, I had the same problem moving to the second subform, but I applied the same procedure and everything is working now.
  20. cgarmas

    Form/subform focus

    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]='" &...

Part and Inventory Search

Back
Top