Forum Discussion

GennyK's avatar
GennyK
Copper Contributor
Mar 10, 2023
Solved

Access and Excel wizard query blank beside headers

I imported an excel datasheet (Lastname, firstname, Healthins, Retirement, TotalBenefits) into Access and created a relationship with an Access database (Lastname, Firstname, Hiredate, job title, salary) based on last name. When doing a simple wizard query (Access: Lastname, Firstname, Hiredate, Jobtitle / Excel: Totalbenefits) the query returns the correct headers but otherwise remains blank. In the design view it shows the correct tables and view as checked. 

 

I'm a new user to Access (this is a class lab assignment). I followed the instructional video to a T, but when the professor runs the query the results populated without a hitch. 

  • Look again? The VALUES for FirstName in one of them are in the LastName field in the other, and vice versa.
  • arnel_gp's avatar
    arnel_gp
    Steel Contributor
    How did you Import your datasheet?
    If you use Copy/Paste, chances are there are "hidden" (non pritable) characters (mostly at the end) of your imported data.
    • GennyK's avatar
      GennyK
      Copper Contributor
      I imported using the External Data Tab> New Data Source > From File > Excel
  • George_Hepworth's avatar
    George_Hepworth
    Silver Contributor
    In order to help us help you, please provide more specifics in addition to the general description.

    We need to see the SQL in the attempted query, preferably from the SQL view.

    Also, data. Show us the data. Screen shots of the two tables should work.
    • GennyK's avatar
      GennyK
      Copper Contributor

      George_Hepworth 

      I'm happy to try and provide anything, not sure what the SQL is- If you can give me an idea of what to look for I'll do my best to find it. (Prior to this class, I've never used access- so thank you for your patience).

      The names, addresses, etc are all made up for the assignment. 

      • GennyK's avatar
        GennyK
        Copper Contributor

        I did find "SQL View" not sure if this is what you are looking for or not! 

         

        I did email my instructor about the assignment, and she said "Looks like you have the table and query linked properly but no formula. Assuming your table has records, that would show all. You need a formula to finish the lab"

        But didn't clarify further (no mention of a formula needed in her written instructions/videos) and referred me to visit her during office hours... Lab is due Sunday, her next office hours aren't until Wednesday. I emailed her about that but she's notoriously bad about getting back to students before 3-4 days have passed. If I absolutely have to, I can just submit what I have for partial credit but I absolutely hate not knowing/learning how to complete something. 

         

        I absolutely appreciate any/all help, even if I don't manage to figure it out in the end. 

Resources