Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664

    Correcting Employee Name and Meeting Options

    In the db that I have attached to the post the frmEmail does not seem to work correctly. There are 13 employees and 4 meetings. The total amount of meeting options


    per person is 4 - no more. However, when I go through the list say for Dwight Frye, there are 52 meetings available, not 4!

    Something is wrong. Each employee can only attend a certain meeting once.

    This just cannot be right since for one employee selected in the combo box there can only be 4 meetings offered. Yet, I get many more than that.

    How do I fix this? Any help appreciated.

    Thanks in advance.

    Respectfully,

    Lou Reed
    Attached Files Attached Files

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    doesn't sound right to me - perhaps there is a clue in 13 x 4=52? Also, look at the 52 records produced - perhaps you have duplicates?

  3. #3
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    I believe that it is Cartesian now. It should not be. As I said a person can attend a specific meeting once. There are now attending them more than once. Actually there are 4 meetings and 13 employees so going through all permutations is clearly not correct.

    How do I fix this?

    any help appreciated.

    Thanks in advance.

    Respectfully,

    Lou Reed

  4. #4
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    How do I fix this?
    by having a join between the tables

  5. #5
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Would it not be better to fix it with a query? In other words, each employee can only go to these
    four meetings once. There are only four meetings (for now) and each employee should not get exposed to more than four.

    Any help appreciated. Thanks in advance.

    Respectfully,

    Lou Reed

  6. #6
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    I don't know. You mentioned Cartesian which is a query so would think you would fix it there. With regards the rest of your comments, makes sense

  7. #7
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    I am simply saying that there are 4 meetings scheduled. That number should be all that an employee can attend - only four. The list with I go through meeting date
    gives these meetings 13x or 13 times over. That does not make sense! How do I modify the next and previous commands for the meeting date (MeetingID) to stop when they
    reach the limit of meetings; in this case only four meetings.

    There should be a way to stop. Say for employee, Peter Cushing, only can attend four meetings. Yet,
    it goes through those 4 meetings 13 times for all 13 employees! That is the problem. There is really no need for a putdown. I think it is a fair question.

    Just look at the output of qryPersonnelMeeting2; there are 52 records. 13 employees for 4 meetings.

    Again each employee can attend only four meetings that should be the limit of their meeting when in frmEmail. Not 52 meetings which
    is what it is giving me now.

    Any help appreciated. Thanks in advance.

    Respectfully,

    Lou Reed

  8. #8
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    its not a putdown, it is a fair question and I agree I would only expect there to be a choice of 4 meetings. You have already mentioned the cartesian query which is why you are getting 52 options. So fix the Cartesian query either with a join or remove the employee table.

    I'm not sure what else to suggest. Perhaps better if someone else makes a different suggestion

  9. #9
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    I am not sure why you would want to remove the employee table? If you look at the frmEmail in design view the code is already there, it was put there about
    4 to 6 weeks ago. I am no expert on this and what and how this was done I cannot answer. I just want to know how to fix.

    Please elaborate on your solution of a join. i am quite interested. It seems to help me in a solution. The record source for frmEmaili is qryPersonnelMeeting. It give me what I need in frmEmail. It gives more than I need.

    Any help appreciated. Thanks in advance.

    Respectfully,

    Lou Reed

  10. #10
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,474
    Post the screen shot of that query in Design mode and/or it in SQL code. Also give sample of the data you are getting from the query and what it is supposed to be. Some cannot open zip files.

    But as Ajax said, fix the query if that is your recordsource for this process.

  11. #11
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    I have attached a snippet of the output of qryPersonnelMeeting and I have also a snippet of frmEmail where MeetingID is selected. MeetingID is selected. I have also attached the db in a zip file. In it you can see that when someone moves down the list of meeting for a selected employee it goes through 52 meetings, not four.

    My guess is that there must be a second query that filters the qryPersonnelMeeting query for a spefic employyee and the meeting he can attend. Again, that is only four in this case/

    I am not sure how to interface it with the MeetingID selector to limit the meeting to the actual number available/

    Any help appreciated. Thanks in advance.

    Respectfully,

    Lou Reed

    Sorry about that. We having extreme problems with our ISP this afternoon. I attached the file that I described, but they never made it t uploa They are there now.

    R, Lou Reed
    Attached Thumbnails Attached Thumbnails Capture40.PNG   Capture41.jpg  
    Last edited by Lou_Reed; 06-13-2017 at 02:19 PM.

  12. #12
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    your db has qrypersonnelmeeting1 and qrypersonnelmeeting2. There is no snippet and there is no query called qryPersonnelMeeting.

    Your form frmEmail circulates through 4 meetings, but is headed Personnel Meeting Query.

    So I am at a loss as to what your problem is

  13. #13
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Here are the files that did not make it in the previous message.We have had ISP problems this afternoon. These files should have uploaded initially.


    They should be here now.

    Respectfully,

    Lou Reed
    Attached Thumbnails Attached Thumbnails Capture38.PNG   Capture41.jpg  

  14. #14
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Here is a YouTube video that I believe would work for me. The lnk is:

    https://www.youtube.com/watch?v=ZSvn5DdhCDg

    I am not sure how to do the syntax for the criteria in the qryPersonnelMeeting.

    I have

    [forms]![frmEmail]![cboEmployeeName]

    in the qryPersonnelMeeting design with the above code in the criteria section of the FullName.

    Now this is for my specific situation, but i do not know if it will work. I do have a syntax error.

    Any help appreciated. Thanks in advance.

    Respectfully,

    Lou Reed
    Attached Files Attached Files

  15. #15
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,474
    but i do not know if it will work
    Best way to learn, try it out and see if it works. If not, try something else. Keep a good backup of the database and data and test away!!

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 15
    Last Post: 05-12-2017, 04:09 AM
  2. Replies: 2
    Last Post: 05-09-2017, 04:12 PM
  3. Need help correcting record count
    By Fivehole91 in forum Access
    Replies: 2
    Last Post: 05-15-2012, 05:15 PM
  4. Help for correcting Before Update
    By Pragmatic in forum Forms
    Replies: 11
    Last Post: 12-28-2011, 11:59 AM
  5. correcting typographical errors
    By aflashman in forum Access
    Replies: 1
    Last Post: 07-31-2011, 03:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums