Results 1 to 4 of 4
  1. #1
    Freddie81 is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Mar 2018
    Posts
    149

    report that contains fieds fro multiple tables

    Hi Guys



    Im building a database for qoute and invoice purposes and Im now at the report stage where Im trying to create a report to show the data from 4 different tables. When I use the report wizard to create it I get an error message about Type Mismatch when I try to open it in preview mode. I then tried creating it myself via a blank report. I finished the header and footer sections but now that I want to add the details section from the other tables (Invoice, invoice details, products and customer info(4 tables) It keeps asking me to specify new relationships. However when I do this al my previous records or fields used in the header become blank? Am I missing something to create a report from 5 different tables?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,645
    Probably, but without knowing more about your data structure and relationships really can't say what. If you want to provide db for analysis, follow instructions at bottom of my post.

    At least post the query SQL statement you are attempting.

    As for the type mismatch, look at the data types of the fields you are attempting to join on.
    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.

  3. #3
    Freddie81 is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Mar 2018
    Posts
    149
    Click image for larger version. 

Name:	relationships.JPG 
Views:	9 
Size:	51.1 KB 
ID:	33294

    Her is the relationships of my database.

    The fieds ar all mixed, som shorttext,some autionumber etc. What I want to do is create a report that has :
    Header:
    My Compny name and details and the invoice number and invoce date

    Footer:
    My banking details ( labels) and ome caculated fields for totals
    In the etails section I need the invoice details ( customer name,adres,contact detais etc) and the transsaction details( product code, product, qty and price)

    However when I try to create this report via the wizard it makes it but wont open it saying type mismatch in expresion.

    I thn tried creating a blank report and desing it myself with logo etc like I want it. When I add y compny detils in the headr it works but as soon as I tr to add the invoice nr or invoice date to the geafer too it makes all my company details blank and it want new relationships?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,645
    Your tblCustomers links to both tblInvoices and tblCompany_Details are wrong.
    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.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Report with multiple tables
    By fede in forum Reports
    Replies: 3
    Last Post: 05-12-2016, 12:52 PM
  2. Replies: 4
    Last Post: 08-05-2015, 02:08 PM
  3. Replies: 1
    Last Post: 06-09-2014, 02:04 PM
  4. Replies: 1
    Last Post: 04-12-2013, 03:03 PM
  5. Report based on multiple tables
    By Pimped in forum Reports
    Replies: 1
    Last Post: 12-16-2009, 04:14 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