Results 1 to 15 of 15

Thread: [RESOLVED]Referring to a subform from another window

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2005
    Posts
    44

    [RESOLVED]Referring to a subform from another window

    Hi, I am trying to write a procedure that will allow the user to click a button on a subform, which opens another window, the user then selects the record they want and then clicks a button on this window to insert the contents of the second windows text box into the previous subforms textbox.

    The following is the code I tried, where tbl_script_details Subform is the name of the subform

    Code:
    Private Sub Command5_Click()
        Dim importString As String
        
        test_script.SetFocus
        importString = test_script.Text
        
        tbl_script_details.script_test_details.Text = importString
        
        
    End Sub
    When I try to run this I get a object not found error. Thanks
    Last edited by Santos7772005; Mar 7th, 2006 at 03:55 PM. Reason: Resolved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width