Results 1 to 4 of 4
  1. #1
    ariansman is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2013
    Posts
    57

    is this smart form possible?

    There is a table named “ student_score” like the following:


    Code:
    ID   studentname       score           subject
    
    
    12        jack           A             Biology    
    13        jack           c             politics    
    14        jack           B             math    
    15        jack           A             physics   
    16        Steve          B             math
    17        Steve          A             politics
    The data is recorded by a form named: “score_entery”. Is it possible that when I open the form all three fields are blank and ready for data entry, but when I put next and the form goes to the next record, the student name field automatically gets the data of the previous record? if this works I wont have to choose student name after the first record and i will only put the subject and score.
    Thank you

  2. #2
    thebigthing313 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    119
    You can set the name field to have a Default Value of

    =DLast("studentname", "student_score").

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    DLast() is not the most reliable domain aggregate function and domain aggregate functions can be slow performers.

    Could just set control's DefaultValue property with the value just entered: review http://access.mvps.org/access/forms/frm0012.htm
    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.

  4. #4
    Dal Jeanis is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    The best way to do this is to have a form/subform setup, where you enter the student name on the master form, and then enter the grades on the subform. The subform wll be based on a query against the same table, limited to those records for that particular student.

    And, I HOPE that on those grade records you're using the student ID number - an autokey field, key of the student table, automatically generated by Access - rather than the student's name. Otherwise, you are setting yourself up for a horrible experience. Ditto goes for the class/subject name.

    (Sorry - here I go answering the question you SHOULD have asked, rather than the one you DID ask.

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

Similar Threads

  1. Replies: 1
    Last Post: 04-02-2012, 07:34 AM
  2. Remove all Smart Tags
    By wgroenewald in forum Access
    Replies: 3
    Last Post: 01-18-2012, 01:12 AM
  3. Smart Card error
    By Ashe in forum Forms
    Replies: 2
    Last Post: 10-17-2011, 03:22 PM
  4. Smart Search multiple fields?
    By Deisun in forum Programming
    Replies: 2
    Last Post: 08-15-2011, 12:31 PM
  5. Need a 'smart' field
    By doci4a in forum Programming
    Replies: 5
    Last Post: 03-04-2011, 09:43 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