Page 2 of 2 FirstFirst 12
Results 16 to 24 of 24
  1. #16
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566

    Hi Steve

    Your Main Table needs a lot of work to normalise the fields.

    You have lots of Repeating Groups as shown in the attached screenshots.

    All of these area should be records in a seperate table and not fields in the Main Table.
    Attached Thumbnails Attached Thumbnails 1.png   2.png   3.png   4.png   5.png  

    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  2. #17
    madpiet is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Feb 2023
    Posts
    154
    Do (Discrepancy, Discrepancy Type, Disposition, Cause) all describe one "thing"? if so, what? In order to help you fix this, we need you to explain what the columns "describe". I've been down the repeating fields road before. It's gonna be ugly going forward. Better to fix it now. I can help you, but I need information first.

    Like do all of the columns with the same maximum subscript (5) belong together?

  3. #18
    madpiet is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Feb 2023
    Posts
    154
    Okay... having looked at the form it makes a little more sense...
    It's like a batch of manufactured items that you're reporting on defects? So the first 4-5 columns from that table (NCMR Number, N Part Number, N Description, Product Family, Lot Quantity) would go in one table, and then the Discrepancy details about that lot would go into a child table (because one lot can have zero or more discrepancies)

    Each Discrepancy has a single type. So the Discrepancy 1-5, Types 1-5 (the whole table thing), and Notes 1-5 all go together? If that's the case then all of those would go in ONE table with the [ID] from the NCMR Main Table as a child. (So it would be Indexed: Yes, Allow Duplicates: Yes, Allow Nulls: No).

    What does the N prefix mean?

    Mike is right, though. If you want to use this data for anything without going through lots of pain, you should normalize. That's what my questions are about. "What 'thing' is this describing? Is this 'thing'/'entity' related to that one? If so, how?" etc.

  4. #19
    steveo0707 is offline Novice
    Windows 11 Office 365
    Join Date
    Oct 2023
    Posts
    16
    Hello June7,

    When I have VBA code that allows me to Save the current record and I use the Select current record on the printer options box when I go to print. In the Report, the select current record is greyed out when I print. But, I do understand from your note above, that I need to filter that out before printing. Makes sense, I didn't think of that.

    Thank you for all your help.

  5. #20
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I never even noticed that option on printer driver. However, if you want to print without user having to interact with printer driver, that might not be available in VBA methods.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #21
    madpiet is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Feb 2023
    Posts
    154
    Quote Originally Posted by mike60smart View Post
    Hi Steve

    Your Main Table needs a lot of work to normalise the fields.

    You have lots of Repeating Groups as shown in the attached screenshots.

    All of these area should be records in a seperate table and not fields in the Main Table.
    Forget form design for a minute. Try to find some records with your table structured like this. I don't think it's going to go well. Or write some queries. That should be really fun. You're not going to OR all 6 or whatever repeating columns are you when searching for something?

  7. #22
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi Steve

    You need to step back a bit and forget about trying to print any reports.

    You need to sort out your tables first and then think about reports at the very end.
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  8. #23
    madpiet is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Feb 2023
    Posts
    154
    Quote Originally Posted by mike60smart View Post
    Hi Steve

    You need to step back a bit and forget about trying to print any reports.

    You need to sort out your tables first and then think about reports at the very end.
    If you normalize first, the rest of this becomes trivial.
    you're trying to treat Access as if it were Excel, but with more complex forms. It's not. Do yourself a favor and read a good article on normalization. Maybe "Database Design for Mere Mortals"

    Or post a copy of your database with a few dummy records.

    I've inherited databases like the one you're building - you're in for a world of frustration if you don't fix it. Let us know when you give up.

  9. #24
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,938
    Here are a few links that @Micron normally posts.
    https://www.accessforums.net/showthr...553#post510553
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Writing Formula in query on existing fields
    By Esmatullaharifi in forum Queries
    Replies: 1
    Last Post: 04-14-2015, 07:29 AM
  2. Replies: 4
    Last Post: 02-05-2014, 04:35 PM
  3. Import Existing Fields into form
    By data808 in forum Forms
    Replies: 1
    Last Post: 08-23-2012, 06:09 AM
  4. Replies: 0
    Last Post: 02-25-2011, 09:40 AM
  5. Importing existing Autonumber fields
    By prophecym in forum Import/Export Data
    Replies: 3
    Last Post: 02-05-2011, 09:59 AM

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