Results 1 to 2 of 2
  1. #1
    AllanW is offline Novice
    Windows Vista Access 2003
    Join Date
    Jan 2014
    Posts
    11

    To record the filtered number of a record in a field on the form


    I open some forms from others and populate them with some of the "parent" data. A counter system is built into Access such that they apear (at the bottom) as "1, 2 etc of "x" filtered". I wish to record this number (not the expression) in a field on the form. In other words, product 1, 2, 3 etc of this particular set of circumstances.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Could try VBA code:

    Me!fieldname = Me.CurrentRecord

    Saving calculated value is usually a bad idea. What do you want to do if one of the products is later deleted? Do you want to renumber the records? Talk about a can of worms!

    This sequential number could be dynamically generated on a report. Textbox on report has RunningSum property to accomplish that.
    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. Replies: 3
    Last Post: 08-18-2013, 01:15 PM
  2. Replies: 8
    Last Post: 07-06-2013, 05:13 PM
  3. More than One Record on filtered Continuous Form
    By Williams485 in forum Forms
    Replies: 3
    Last Post: 03-13-2013, 04:56 AM
  4. Replies: 6
    Last Post: 04-17-2012, 10:32 AM
  5. Replies: 1
    Last Post: 12-02-2011, 09:56 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