Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722

    Just post code or whatever here in the forum.

  2. #17
    xjps is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2020
    Posts
    9
    Click image for larger version. 

Name:	Annotation 2020-02-04 144035.jpg 
Views:	9 
Size:	68.4 KB 
ID:	40804 Ok. If I run the report from the side menu (red) it works and prints fine. If I run it from the nav form (green), that is where the loop on print occurs. I am not sure where the code for the nav form is located because when I click the show visual basic button, the functions are all blank. Thanks.

  3. #18
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    PMFJI,

    Please note that it is not "Best Practices" to have spaces in object names. (Objects include field, table, query, form and report names.)
    It would be better if your field names were
    Code:
    SELECT 
    Pilots.[FirstName], 
    Pilots.[LastName], 
    Pilots.[BaseMonth], 
    Pilots.[CertificateNumber],
    Event.[EventName], 
    Event.[EventDescription], 
    Event.[ValidDuration], 
    Event.[DateCompleted], 
    Event.[DateExpires], 
    Event.[EventType], 
    Event.[Cert_Num]
    
    FROM Pilots INNER JOIN Event ON Pilots.[CertificateNumber] = Event.[Cert_Num];
    Note the lack of spaces in names....

    You have not provided any info about what you are trying to accomplish, so I have some questions.

    What constitutes a "CertificateNumber"?
    Can the "CertificateNumber" for a pilot ever change?
    Does a pilot only have 1 "CertificateNumber"?
    What are events?
    What is the primary key (PK) field in the two tables?

    I have concerns that you have table design issues. I don't think you should be linking the tables using "CertificateNumber".

    Maybe you would make a copy of the dB, delete all but 5 pilot records, change any sensitive info and post the dB. Change the names to something like Fred Flintstone, Barney Rubble, etc.
    Compress (zip) and post.

  4. #19
    xjps is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2020
    Posts
    9
    Thanks for the reply. I figured it out. The database is sound (other than the object names) I am familiar with SQL. My issue was with Access itself. I was trying to use the navigator as a type of home page / report launcher type thing and it was messing up the reports. I deleted it and just used a custom form to launch the reports and input data. It all works as expected now.

  5. #20
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Happy you solved the problem

    Good luck with your project.......

  6. #21
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722

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

Similar Threads

  1. Loop Query and Print based on multiple criteria
    By beckysright in forum Queries
    Replies: 1
    Last Post: 11-15-2017, 01:17 AM
  2. Replies: 3
    Last Post: 04-28-2017, 09:51 AM
  3. Print in a loop
    By LonghronJ in forum Modules
    Replies: 4
    Last Post: 02-03-2016, 07:44 AM
  4. Replies: 5
    Last Post: 08-06-2015, 03:26 PM
  5. Replies: 1
    Last Post: 02-21-2015, 11:35 PM

Tags for this Thread

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