Results 1 to 4 of 4
  1. #1
    stu is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2011
    Posts
    13

    Comments History

    Hi,



    I am new to Access and am trying to self teach as I write a new database for work. I want a comments history on a form and with a little investigation found that a text box on the form with the following in the expression builder should do the trick -

    =ColumnHistory("SPP Records","Progress Entry","[ID]=" & Nz([ID],0))

    SPP Records is the main table and Progress Entry is the memo field / column (with append only applied) where the comments are entered.

    However, all I get back is #Name?

    If I revise the code to -

    =ColumnHistory("SPP Records","Progress Entry","[ID]=10")

    Then the comments history is returned, but this will obviously only work for the record with ID=10.

    What am I doing wrong?

    Thanks!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Everything I read indicates cannot use a variable in ColumnHistory expression, only a literal string.
    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
    stu is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2011
    Posts
    13
    OK thanks. Any idea how I put a unique literal string in each form for each record?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Hmmm, another search indicates a variable is allowed but must return only one record or will error. View this thread
    http://www.utteraccess.com/forum/col...d#entry1938724
    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. History
    By jgalloway in forum Database Design
    Replies: 4
    Last Post: 10-04-2011, 02:27 AM
  2. Comments when clicking a button
    By Juan4412 in forum Programming
    Replies: 4
    Last Post: 06-23-2011, 04:34 PM
  3. Your comments on this school database system please
    By crazycat503 in forum Database Design
    Replies: 3
    Last Post: 05-24-2011, 09:28 AM
  4. Comments box
    By allykid in forum Forms
    Replies: 1
    Last Post: 07-12-2010, 08:45 AM
  5. Client History
    By janjan_376 in forum Access
    Replies: 1
    Last Post: 06-23-2009, 02:44 AM

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