Results 1 to 3 of 3
  1. #1
    jvelezc is offline Novice
    Windows Vista Access 2007
    Join Date
    Aug 2010
    Posts
    1

    Why do I have to click on the field for the value to display

    I dont understand why in my report the value for attendance has to be clicked before it displays.
    I tried this:

    Private Sub Text11_Enter()
    Dim present As String


    present = DLookup("[counter]", "Query2")
    If IsNull(Me!attendance) Then
    attendace.Value = present
    attendace.Text = present
    End If
    End Sub
    To donwload the database in question:
    http://www.caltutorcentral.com/test/Database1.accdb

  2. #2
    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
    Are you talking about a form because a report is not interactive? The event you have this code in *only* executes when you move the focus to that control.

  3. #3
    azal is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    12
    Dcount for form, because it is RUNNING count...

    use to count attendence:

    give attendance cases CODES in the database for example present (1) and abs (2)

    and in attenedance textbox type this:

    =sum(iif(attendance=1; 1;0))


    hope it helps

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

Similar Threads

  1. Replies: 13
    Last Post: 06-01-2010, 09:55 PM
  2. Report control of a field display/no display
    By systems013 in forum Reports
    Replies: 5
    Last Post: 02-01-2010, 09:44 AM
  3. Click a record to display it for edit
    By mapl in forum Access
    Replies: 0
    Last Post: 11-24-2008, 03:02 PM
  4. In a field on a Form, on click open another form
    By jackieagra in forum Programming
    Replies: 1
    Last Post: 03-20-2008, 09:44 AM
  5. Replies: 1
    Last Post: 03-02-2006, 06:17 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