Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,180
    Hi,



    you can try to put the expression

    me.MRR_NO = me.text145

    in the Form_AfterInsert event

    gr
    NG


  2. #17
    gbullo is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2010
    Posts
    16
    Vitols,

    I'm not sure you understood what my confusion was about and this didn't really help.

    My form name is "FrmAssignMRR1"
    Record source (table) = MRR Table
    Field name = "text145" (this is the autonumber field which is assigned when adding a new record)
    Field name I want the value from text145 to be populated with = "MRR_NO"

    What I need is the value from "text145" to automatically populate into field "MRR_NO" rather than type it in manually.

    So based on the form name, my two field names I am working with, would the code look like this?

    Forms("frmassignmrr1").Controls("MRR_NO") = lngNumber

    And would this code be placed in the after update properties of the form "frmassignmrr1" or the text field where the autonumber is populated when a new record is created "text145"

    George

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Auto Populate
    By co_sportsguy in forum Access
    Replies: 3
    Last Post: 09-01-2010, 01:22 PM
  2. Auto-populate form question
    By revnice in forum Access
    Replies: 19
    Last Post: 08-06-2010, 01:01 PM
  3. auto populate combo field?
    By myboii in forum Access
    Replies: 8
    Last Post: 07-09-2010, 05:46 AM
  4. Auto-Populate Combo box
    By vincenoir in forum Forms
    Replies: 3
    Last Post: 10-14-2009, 07:06 AM
  5. Replies: 3
    Last Post: 10-05-2009, 07:22 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