Results 1 to 4 of 4
  1. #1
    bupinder is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Sep 2017
    Location
    india
    Posts
    3

    Question Fetching data from multiple tables.

    i am using a form where text boxes from 3 different tables will be used to fetch pre-recorded data. it will be used as an auto-generation form to print out a letter where different fields will use values from the tables.
    The trick here is that a the first form contains the primary key which links to this form, on clicking the 'field' this form will open with data being fetched from the tables which has already been filled by other forms.
    now the problem is, 'type mismatch' error. The form works fine upto 2 tables, but when i put in the fields from 3rd table, errors come.
    any way of solving this will be very helpful.
    PS: i used sub-form, but still i need fields from 3 tables at different places.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,522
    if it is related data, you should be able to join all 3 tables in a query and get all the data at once.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,892
    Type mismatch means you are trying to link tables on fields that are not the same data type. We would need to know more about data structure to advise.

    If you need to print data, best to use a report.
    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.

  4. #4
    bupinder is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Sep 2017
    Location
    india
    Posts
    3
    thanks.. i just solved the issue by using text boxes, dependent on comboboxes based on a single table.

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

Similar Threads

  1. Replies: 7
    Last Post: 07-24-2017, 11:47 PM
  2. Replies: 2
    Last Post: 07-13-2015, 12:53 PM
  3. Replies: 5
    Last Post: 08-12-2013, 12:53 AM
  4. Replies: 1
    Last Post: 08-25-2012, 06:11 PM
  5. Auto-fetching Data From 3rd Party Program, Access 2007
    By D4WNO in forum Import/Export Data
    Replies: 1
    Last Post: 08-21-2012, 03:24 PM

Tags for this Thread

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