Results 1 to 4 of 4
  1. #1
    tylerg11 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    200

    Split Form Orientation...Coding?


    I am redesigning forms to have a more compact and organized look. Currently, the split form view is used on all the main forms. Instead of the Datasheet portion of the split form in a separate pane, I'd like to put it on a tab in the pages control I've added to the form. There are only four options for the split form orientation property from the property sheet. i was wondering if I could use a little coding to put the split form orientation on a tab in the form itself?

  2. #2
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    I thought I already gave you that answer. The answer is no, you can't do that. There is no way to do it. You would need to use a mainform, subform to simulate that.

  3. #3
    tylerg11 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    200
    But a split form lets you select a record which displays in the main form. How could you do that with a subform?

  4. #4
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Quote Originally Posted by tylerg11 View Post
    But a split form lets you select a record which displays in the main form. How could you do that with a subform?
    With coding and it would not have anything in the Master/Child links. The On Current event of the subform (datasheet) would have:
    Code:
    Dim rst As DAO.Recordset
     
    Set rst = Me.Parent.RecordsetClone
     
    rst.FindFirst "[IDFieldNameHere]=" & Me!IDFieldHere
     
    If rst.NoMatch Then 
       msgbox "Error! Contact your IT Representative", vbExclamation, "No Match Found"
    Else
       Me.Parent.Bookmark = rst.Bookmark
    End If
     
    rst.Close
    Set rst = Nothing

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

Similar Threads

  1. Landscape Orientation-WebBrowser Control
    By mwolfod in forum Forms
    Replies: 0
    Last Post: 04-11-2011, 08:32 AM
  2. Changing information orientation
    By gumberculies in forum Reports
    Replies: 1
    Last Post: 06-10-2010, 07:48 PM
  3. VB coding for saving when click on save button in form
    By cwwaicw311 in forum Programming
    Replies: 1
    Last Post: 02-04-2010, 11:11 PM
  4. Email with proper page orientation of Report
    By Robert M in forum Programming
    Replies: 1
    Last Post: 08-17-2009, 10:28 AM
  5. simple math coding for form field??
    By RCBNewbee in forum Programming
    Replies: 7
    Last Post: 07-13-2009, 08:30 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