Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    annemrosenberg is offline Expert in Training
    Windows 7 64bit Access 2007
    Join Date
    Jul 2011
    Posts
    39

    Talking Query issues due to a bad relationship!

    Hi There!

    I have a new dilemma for somebody to solve.

    I have two tables.



    The first table (EDC Archive) houses all of the images available from a source.

    The second table (MDA Database) houses all of the images we have in house.

    I need to create a query that will show which images in the EDC Archive are images we have in the MDA Database.

    Once I've got that, then I need to be able to display some additional fields that are already in the EDC Database.

    Since there weren't any unique fields in either table, i created an auto number field for both and made them the primary keys.

    I then made a junction table and joined them together but its showing that they are only one-to-one relationships.


    Does anyone have any insight as to how I can achieve this?

    Thanks,
    Anne

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by annemrosenberg View Post
    I need to create a query that will show which images in the EDC Archive are images we have in the MDA Database.
    use a simple 'IN' subquery to get it.

    something like:

    Code:
    select RECORDS from table1 where UNIQUE_COMBO_OF_FIELDS in (
    
    select UNIQUE_COMBO_OF_FIELDS from table2)
    Quote Originally Posted by annemrosenberg View Post
    I have a new dilemma for somebody to solve.
    Unfortunately, we're not hear to solve dilemmas, girly. (that was 'partially' in fun)

  3. #3
    annemrosenberg is offline Expert in Training
    Windows 7 64bit Access 2007
    Join Date
    Jul 2011
    Posts
    39
    Even without them being related?

  4. #4
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by annemrosenberg View Post
    Even without them being related?
    the purpose of subqueries is the ability to do things that relationships and joins won't do (or when you don't have them).

    furthermore, just because you don't have relationships set up as permanent structures, you can ALWAYS write them into queries when you create them. Just write the join statements yourself.

    also, see my prev. post again. I added sql to it.

  5. #5
    annemrosenberg is offline Expert in Training
    Windows 7 64bit Access 2007
    Join Date
    Jul 2011
    Posts
    39
    I write the subquery in the criteria row of the designer right?

  6. #6
    annemrosenberg is offline Expert in Training
    Windows 7 64bit Access 2007
    Join Date
    Jul 2011
    Posts
    39

    Maybe looking at it, you can see...

    Do you see the problem or problems?

  7. #7
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    look at your image dimensions, girly. it's unreadable. the pixellation is too small.

  8. #8
    annemrosenberg is offline Expert in Training
    Windows 7 64bit Access 2007
    Join Date
    Jul 2011
    Posts
    39
    oh well...in any case its saying my syntax is wrong...

  9. #9
    annemrosenberg is offline Expert in Training
    Windows 7 64bit Access 2007
    Join Date
    Jul 2011
    Posts
    39

    I suck :-(

    Am I even on the right path?? I'm so lost.

  10. #10
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Have 2 things to say here:

    1) If you post "I suck" one more time, I won't help you anymore because that's just the kind of attitude that's brought the USA to the place that it is now. and
    2) the picture is STILL too bleak. I can't see it. It might be your computer's res. check it. It looks like it's the highest possible. That's not good for snapping a screenshot with print screen.

    why not just upload the file and I'll help you out? tell me what tables you want to work with...

  11. #11
    annemrosenberg is offline Expert in Training
    Windows 7 64bit Access 2007
    Join Date
    Jul 2011
    Posts
    39

    File

    1. I promise not to say anything even remotely close to "I suck" , if you never call me "girly" again. deal? haha :-)

    2. Good Idea! I have attached the file so you can see what kind of mess I've gotten myself into!

  12. #12
    annemrosenberg is offline Expert in Training
    Windows 7 64bit Access 2007
    Join Date
    Jul 2011
    Posts
    39
    The file is 500,00KB it won't let me send it.

  13. #13
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by annemrosenberg View Post
    The file is 500,00KB it won't let me send it.
    500000K is 500 mb. compact it, zip it, and if it's still too big, sh**can everything except the 2 tables you want me to show you how to manipulate.

    ok? that'll be fine. surely the tables aren't bigger than 10MB combined. You'd need millions of records for that!

  14. #14
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    hey girl,

    If you can't get it down below the max allowed here, you can email it to me if you wish. I think gmail's servers allow up to 10MB of filesize. It might even allow a lot more, but not sure.

    Let me know if you want my address.

  15. #15
    annemrosenberg is offline Expert in Training
    Windows 7 64bit Access 2007
    Join Date
    Jul 2011
    Posts
    39
    Yes! I would love to have your email so i can send the file...

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

Similar Threads

  1. query issues
    By 9944pdx in forum Queries
    Replies: 3
    Last Post: 01-12-2011, 06:34 PM
  2. Query speed issues
    By thart21 in forum Queries
    Replies: 2
    Last Post: 04-07-2010, 05:16 PM
  3. Query duplication issues
    By MiCCAS in forum Queries
    Replies: 1
    Last Post: 02-18-2010, 11:31 AM
  4. between query issues
    By jderrig in forum Queries
    Replies: 4
    Last Post: 01-15-2010, 02:30 PM
  5. Relationship issues
    By asweisman in forum Database Design
    Replies: 1
    Last Post: 04-20-2009, 08:04 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