+ Reply to Thread
Results 1 to 7 of 7

Access Query giving blank data results

  1. #1
    Forum Contributor
    Join Date
    02-13-2018
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    179

    Access Query giving blank data results

    Hello,

    I have a table of data imported (below). ***Access file in attached in this thread**

    Access Table.png

    I am now trying to make a query bad on all 3 tables, using the 4 fields selected. When I run the query, I get no data results. Why? How to fix?

    Query 1st.png
    Query 2nd.png
    Attached Images Attached Images
    Last edited by Shruder; 01-27-2022 at 05:30 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Access Query giving blank data results

    Hi and welcome to the forum

    Pictures are of little value. Honestly, no one wants to re-type your data to try and solve your issue. Additionally, we would only be guessing at how your data was structured, ie. formulas, formatting, etc. Additionally, due to how some browsers behave, many of our members cannot see uploaded pictures/images. Please do not take this route.

    Please attach a sample file that represents what you have. The structure of your attachment should be the same structure as your actual data. Any proprietary information should be changed.

    You will need to zip your file for it to upload as it is an Access file and not an excel. I suspect but cannot confirm that you need Primary IDs for each table and Foreign IDs that will link to each other.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    02-13-2018
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    179

    Re: Access Query giving blank data results

    Thank you for the reply, I have attached the Access DB in zip file.
    Attached Files Attached Files

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Access Query giving blank data results

    As suspected. you have not created any relationships between the tables. For the cars in the Car Table, you need a foreign key to link it to the owners in the owners table. In the rentals table, you need to create a relationship between the cars and the renters. So another Foreign ID is needed in that table that links to the renter. Once you have your relationships, then you can join the tables on the primary keys and the foreign keys.

  5. #5
    Forum Contributor
    Join Date
    02-13-2018
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    179

    Re: Access Query giving blank data results

    Hi alansidman,

    thank you for your reply. I have created foreign keys and joined the tables as per your notes. However, I am still not seeing the data results from tables when I open the form (images below). What might still be causing this? Thank you

    Attachment 765584

    Attachment 765585

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Access Query giving blank data results

    The attachment feature in this forum is non functional. So....I cannot view what you have posted. Suggest you repost your sample DB as that is what I can analyze

  7. #7
    Forum Contributor
    Join Date
    02-13-2018
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    179

    Re: Access Query giving blank data results

    I was able to fix the form so that is good. I have other ?'s on the peramteter filed box coming up when it is not needed and some caluclation fixes n some quiries. I will make a new thread for those and mark this one solved. Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] import text numbers from excel to access giving a blank
    By JEAN1972 in forum Access Tables & Databases
    Replies: 3
    Last Post: 02-15-2017, 03:03 PM
  2. Replies: 1
    Last Post: 09-08-2015, 08:12 PM
  3. [SOLVED] Access unmatched query returning Blank Results
    By jonboy6257 in forum Access Tables & Databases
    Replies: 4
    Last Post: 12-04-2013, 10:46 AM
  4. Replies: 6
    Last Post: 08-16-2013, 08:46 AM
  5. Get Access Query Results
    By pr4t3ek in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-26-2009, 05:10 AM
  6. Get Access Query Results
    By pr4t3ek in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2009, 01:50 AM
  7. [SOLVED] Data too large for Excel, need to query Access data for results
    By Susan in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-09-2006, 11:10 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1