Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051

    Hi Lou. Your query for that report searches for status <>"n/a" which return no values at all as they are all n/a


    Sent from my iPhone using Tapatalk

  2. #17
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    Yes that's correct.


    Sent from my iPhone using Tapatalk

  3. #18
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664

    One more thing

    When I open rptAttendence from frmPersonnel; the rptAttendence does open, but ut stays in the background; I cannot even see it because frmPersonnel is blocking it..

    Now when I tried to alter the Macro that open this report, to change the visible property from Yes to No, MS Access did not like it.

    There is no close form Macro, but there is on open form Macro; so how to get rid frmPersoonel? Or at least how do I move it to the background?

    Thanks in advance.

    Respectfully,


    Lou Reed
    Last edited by Lou_Reed; 03-07-2017 at 02:27 PM. Reason: correction

  4. #19
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    Go into the macro you have to open the report and change the initial setting from Normal to Dialog

  5. #20
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    I also have one more question. How or where did you know that frmPersonnel must be open to rptAttendence ?

    I have not read anything about it. I am certain that you are correct. It works after all!

    But just where did you get it.

    Also what is the purpose of the Form_Current subprogram?

    Any help appreciated. Thanks in advance.

    Respectfully,

    Lou Reed

  6. #21
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    Code:
    SELECT tblMeetings.MeetingID, tblMeetings.MeetingDate, tblAttendence.Notes, tblAttendence.Status, tblPersonnel.PersonnelID FROM tblPersonnel INNER JOIN (tblMeetings INNER JOIN tblAttendence ON tblMeetings.MeetingID = tblAttendence.MeetingID) ON tblPersonnel.PersonnelID = tblAttendence.PersonnelID WHERE (((tblAttendence.Status)<>"N/A") And ((tblPersonnel.PersonnelID)=Forms!frmPersonnel.PersonnelID));
    This is the SQL that the rptAttendance needs for it's data

    (It was on the data tab of the reports properties)

    The SQL cannot know the value of something on a form if the form isn't open

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

Similar Threads

  1. Complete Novice
    By npsnps in forum Forms
    Replies: 9
    Last Post: 04-15-2016, 04:13 PM
  2. Replies: 2
    Last Post: 08-28-2015, 06:26 PM
  3. Replies: 4
    Last Post: 09-09-2013, 12:04 PM
  4. Replies: 6
    Last Post: 04-01-2013, 12:25 PM
  5. Complete Newbie Question
    By xsbucks in forum Access
    Replies: 7
    Last Post: 12-17-2011, 03:37 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