Results 1 to 12 of 12
  1. #1
    PSSMargaret is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    55

    Turn Off Datasheet Subform First Row Highlight


    Is here any way to turn off the first row highlight in datasheet subforms? It's very distracting.

    Click image for larger version. 

Name:	Capture.JPG 
Views:	27 
Size:	42.3 KB 
ID:	42238

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    It sounds like you do not intend to let the user edit on the subform. Have you tried just disabling the subform?

  3. #3
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,818
    could try this on the subform

    If Me.SelHeight > 0 Then
    Me.SelHeight = 0
    End If

    You get that because the first record is selected - combo box seems to have the focus too.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    PSSMargaret is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    55
    The user will be updating information in that form. Changing "Enabled" on the subform didn't remove the highlighting.

  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    How will you indicate which row of the sub form the cursor is on?

  6. #6
    PSSMargaret is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    55
    Each fields has conditional formatting that turns a color when it has the focus.

  7. #7
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Got it. I'll play a bit and get back to you.

  8. #8
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,818
    Then methinks your only option is to convert the form to a continuous view. If you need the datasheet look, you can replicate that in a continuous form. If you don't want the control with the focus in the first record to look selected or highlighted, then in the GotFocus events for such controls, you can set their SelLength to zero.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  9. #9
    PSSMargaret is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    55
    Using a continuous form won't work. The client needs to be able to sort and filter the data in the form. Some records have a large number of rows in that subform.

  10. #10
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,818
    I don't see the problem with being able to do sorting and filtering on a continuous form. Since you seem to be so sure of what won't work without considering much of anything suggested to you, I will bow out.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  11. #11
    PSSMargaret is offline Advanced Beginner
    Windows 10 Access 2010 64bit
    Join Date
    Dec 2016
    Posts
    55
    All I meant was that the client likes the format of the datasheet. It sorts and filters like Excel which they are familiar with and they can also move the columns around.

  12. #12
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Maybe there is something in here: https://vb123.com/you-can-do-that-with-datasheets/ that you can use.

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

Similar Threads

  1. Replies: 1
    Last Post: 12-05-2016, 02:23 PM
  2. Replies: 3
    Last Post: 08-18-2013, 09:14 PM
  3. Replies: 1
    Last Post: 07-22-2013, 12:00 PM
  4. Replies: 6
    Last Post: 11-21-2012, 05:10 PM
  5. Replies: 8
    Last Post: 08-26-2012, 11:11 PM

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