Results 1 to 3 of 3
  1. #1
    fdelval is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    4

    access currentRecord

    Hello all!



    I want to retrieve the fields of the selected value in a subform

    I have a form with a subform inside in access 2003.

    If i select a row in that subform, with this code:
    [mySubform].Form.CurrentRecord i can get the number of the row, ie: 1 if is the first row.


    Now, how can i retrieve a value of a field of that record??

  2. #2
    fdelval is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    4
    i mean:

    id - address - name
    1 street paul
    2 street betty
    3 road idontknow

    if i am currently selecting the second row, how can i get the name, which is betty?

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Reference the control in the SubForm as this link describes:
    http://www.mvps.org/access/forms/frm0031.htm

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

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