Results 1 to 10 of 10
  1. #1
    paramesium is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2013
    Posts
    20

    Prevent subform being set focus

    Hi all,

    As title, how do I Prevent subform being set focus upon loading?

    Click image for larger version. 

Name:	123.png 
Views:	7 
Size:	1.3 KB 
ID:	14646

    Also, what should I do so that when I pressed the subform , it will not show the blinking "text tool"?



    I know it is a bit troublesome, but it seems confusing for the user since the subform is mean for read-only.

    thank you very much!

    Regards,
    Jack

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    You can adjust the Tab Stop property for the sub form control. Have it = No.

    You can also adjust the order of all controls on the Main form using Tab Index.

    If you want your subform to behave a certain way, you can edit the subform itself. Open the form in edit view and adjust the properties so the form does not allow edits, additions, or deletions. You can also adjust the Cycle property to Current Record. This will prevent the user from tabbing over to a new record within the form or moving to the next record by hitting Enter.

  3. #3
    paramesium is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2013
    Posts
    20
    Quote Originally Posted by ItsMe View Post
    You can adjust the Tab Stop property for the sub form control. Have it = No.

    You can also adjust the order of all controls on the Main form using Tab Index.

    If you want your subform to behave a certain way, you can edit the subform itself. Open the form in edit view and adjust the properties so the form does not allow edits, additions, or deletions. You can also adjust the Cycle property to Current Record. This will prevent the user from tabbing over to a new record within the form or moving to the next record by hitting Enter.
    hmm, it works on form, but it doesn't work on a subform....

    wonder where I did wrong.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    Hard to say. I don't know what you did.

    On your main form, there is a control that acts as a container for your subform. You can adjust the properties for that control.

    This subform container has a source object property. It seems this property is set to look at a form. You can open this form object directly, by selecting the object in your Navigation Pane and opening it in edit view. You can also edit the form object by clicking inside the subform control/container.

    By editing the Tab Stop and Tab Index properties the user experience will be affected. You can also edit the form object properties to prevent editing, adding records, deleting records, etc.

  5. #5
    paramesium is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2013
    Posts
    20
    Nice, i was missing out a step just now, it is working now, thanks a lot!

  6. #6
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    There are many nuances to properties. Comb back through the posts I made and play around with the behavior. Post back if you have questions.

  7. #7
    paramesium is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2013
    Posts
    20
    actually I have one more question.

    how do you stop scrolling when you see the last record in subform, so that I dont see any blank rows in the subform.

    hope you get what I mean.

    really appreciate your help, thanks in advance!

  8. #8
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    Maybe
    Cycle Records = Current Record
    and
    Allow Additions = No

    for the properties of the form object that is the subform.

  9. #9
    paramesium is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2013
    Posts
    20
    actually what I meant is, I want the scroll bar to stop here:
    Click image for larger version. 

Name:	789.png 
Views:	6 
Size:	4.5 KB 
ID:	14648

    not able to scroll like the below one.
    Click image for larger version. 

Name:	456.png 
Views:	6 
Size:	4.5 KB 
ID:	14647

    thank you!

    Jack

  10. #10
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    Try resizing your form object. Honestly, not sure what is going on there. I don't believe my form's behave that way. Let me know if resizing helps. If not, I will look at some of my forms and see what I can see.

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

Similar Threads

  1. Replies: 3
    Last Post: 10-30-2013, 05:59 AM
  2. Replies: 6
    Last Post: 05-05-2012, 08:43 AM
  3. Set Focus on Subform
    By GCS in forum Forms
    Replies: 1
    Last Post: 12-01-2011, 11:46 AM
  4. Set focus to a field on a subform
    By MiaAccess in forum Forms
    Replies: 11
    Last Post: 03-05-2011, 11:49 AM
  5. Replies: 15
    Last Post: 11-09-2010, 04:27 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