Results 1 to 3 of 3
  1. #1
    lmnnt is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2011
    Location
    Darwin NT Australia
    Posts
    16

    show name of query in query field

    I have a number of append queries that show different errors from the source data. Is there a way that I can show the name of each append query in the append table so that it's easy to see what the error is? Thanks in advance

  2. #2
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Quote Originally Posted by lmnnt View Post
    I have a number of append queries that show different errors from the source data. Is there a way that I can show the name of each append query in the append table so that it's easy to see what the error is? Thanks in advance
    I'm not sure I understand what you want, but if you want the name of the query to be saved in the append table, add a text field (maybe "WhichQuery") to the append table. Then, in the append query, add a column that looks something like this

    QueryName: "qryReport1"

    (change the name "qryReport1" in each query to the real name)

    In the append query, append the column "QueryName" to the field "WhichQuery" in the append table.

    Since the column "QueryName" in the query is a constant, every record that is appended should have the name of the query entered in each record.

    It is a lot of manual effort, but I don't know how to get the query name from the query while it is executing.

  3. #3
    lmnnt is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2011
    Location
    Darwin NT Australia
    Posts
    16
    Hi Steve
    Many, many thanks for this - it's exactly what I wanted

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

Similar Threads

  1. query to show gaps in a date field
    By Lockrin in forum Database Design
    Replies: 1
    Last Post: 05-28-2010, 10:48 AM
  2. Query, show top 10
    By lostinspace in forum Queries
    Replies: 4
    Last Post: 05-10-2010, 12:18 PM
  3. Query to only show a value in a form from a query
    By cwwaicw311 in forum Queries
    Replies: 28
    Last Post: 03-27-2010, 02:31 AM
  4. Replies: 2
    Last Post: 09-26-2009, 07:19 AM
  5. Replies: 1
    Last Post: 03-15-2007, 03:38 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