Results 1 to 5 of 5
  1. #1
    badmem is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2016
    Posts
    24

    Change reports to reference a new table.

    I have a table called Q1 which forms and reports use. I've now created a new table Q2 which uses the same data structure. Is there a way to change the forms and reports to reference table Q2 instead of Q1 without manually changing all of the fields?

    Thank you

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    If the field names are the same then just change the RecordSource of the report/form. It will work.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Further to Allan's advice, which answers your direct question, I suggest you use more meaningful names for your tables. Q1 and Q2 are just examples, right?

  4. #4
    badmem is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2016
    Posts
    24
    Thanks for your replies. Yes the names are examples.

    Does this work with queries as well? I have a query that links the Q1 table to another "Department" table. As you can tell I'm a novice with Access. At the moment I'm copying the Q1 query putting the new Q2 table into the design view and linking the Q2 table to the department table. I then manually change the references from Q1 to Q2. Finally I delete the Q1 table from the query. Is there an easier way to do this?

    Thank you.

  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    A form can not tell the difference between a table and a query.

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

Similar Threads

  1. Can't copy or change some reports.
    By khughes46 in forum Reports
    Replies: 4
    Last Post: 04-08-2015, 04:00 PM
  2. Replies: 3
    Last Post: 10-07-2013, 12:27 PM
  3. Replies: 9
    Last Post: 03-30-2012, 09:22 AM
  4. Change linked table reference automatically
    By kjuelfs in forum Access
    Replies: 1
    Last Post: 07-20-2010, 09:14 AM
  5. Replies: 0
    Last Post: 08-01-2009, 12:43 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