Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 54
  1. #16
    daveone23 is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2024
    Posts
    25

    Data base

    I am a novice when it comes to Access but I think I am getting close. See attached. I used the wizard to create a query and its close but one of my records (radios) has 2 of the same tubes, 12sk7, and its only reporting one. I am not sure where to enter the code or tweak this query.
    Attached Files Attached Files

  2. #17
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    Your main problem is that your table is designed like a spreadsheet. There may be a fix for your issue using what you have but you will continue to have more issues. Review database normalization. You really should have a table for radios, one for tubes and one that's known as a junction table. Imagine you get another radio and it has a tube that's not in your table. Now you have to redesign all your queries, forms, reports, etc. to accommodate this. That is the surest sign of design issues.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #18
    daveone23 is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2024
    Posts
    25
    I get having two tables but how do I tie a string of tubes to a certain radio on the other table?

  4. #19
    madpiet is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Feb 2023
    Posts
    154
    Getting warmer... More later. I'll restructure and explain what I'm doing. (Take heart - learning database stuff is HARD. Anybody who claims he didn't struggle at first is very likely lying.)

  5. #20
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    I get having two tables but how do I tie a string of tubes to a certain radio on the other table?
    I could explain it but it has already been documented countless times, which is why I made this suggestion:
    Review database normalization.
    Another option is to wait until someone hands you the solution (the proverbial fish) and it looks like you won't have to wait long. But then how much will you learn about the principles behind the gift and where would that leave you next time? I think I'd be doing you the bigger favour but that's just me.

    EDIT - here's the normalization links I usually pass on
    http://rogersaccessblog.blogspot.com...on-part-i.html
    and/or
    http://holowczak.com/database-normalization/
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  6. #21
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Quote Originally Posted by daveone23 View Post
    Why is this such a complicated code issue for a simple table. Say you wanted to know who had a blood pressure of 145. Would you have to code the query?


    name JAN FEB MAR APRIL
    TOM 90 80 88 145
    MARK 120 90 113 123
    JANE 140 100 123 101
    Because you made it complicated.
    What if you had to add another field?
    You would have to change your code to allow for the new field.
    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

  7. #22
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    WGM - Umm, I think that belongs in the other thread, where the problem is also based on lack of normalization?
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  8. #23
    daveone23 is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2024
    Posts
    25
    Ok, I think I made it into a database form. I just need a little more help to extract the data I want
    Attached Files Attached Files

  9. #24
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    Your tubes table is still a spreadsheet.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  10. #25
    daveone23 is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2024
    Posts
    25
    But I have 5 or 6 fields per record. You said have one table for tubes. There are many tubes per radio
    Attached Files Attached Files

  11. #26
    Minty is online now VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    Here is what you need.
    I'll let you fill out the rest of the data.

    Data in databases is stored long and thin, and never stores data as part of a field.

    See if this makes sense - now you can have 2, 3 or 50 tubes in a radio and the design accommodates it.
    Attached Files Attached Files
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  12. #27
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Quote Originally Posted by Micron View Post
    WGM - Umm, I think that belongs in the other thread, where the problem is also based on lack of normalization?
    Hmm, I posted that on my phone? No idea where that went wrong.

    Thank you @Micron
    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

  13. #28
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,940
    Done it again?

    No this is the correct thread. The quote is from post #13 in this thread.
    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

  14. #29
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Daveone23,

    You said "i would say you dont understand my application".
    I agree.
    Please give readers the 30,000 ft overview of what this application is about --no quasi-database terms.
    What issues does the proposed database application solve?

  15. #30
    daveone23 is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Feb 2024
    Posts
    25
    I ran that test program and while it looks interesting, the FORM is to complicated and full of useless information. I want one empty box where I can type 12sk7 and it brings up all the radios that use that tube.

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

Similar Threads

  1. Extracting contents from memo fields
    By murgatroyd in forum Queries
    Replies: 6
    Last Post: 03-27-2016, 07:08 PM
  2. Replies: 4
    Last Post: 05-23-2014, 12:22 PM
  3. Replies: 8
    Last Post: 12-21-2011, 05:50 AM
  4. Replies: 3
    Last Post: 03-05-2011, 12:46 PM
  5. Extracting text from XML data
    By rob4465 in forum Access
    Replies: 1
    Last Post: 03-18-2010, 06:41 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