Results 1 to 2 of 2

Thread: [RESOLVED] obtaining the name of the text in textbox

  1. #1

    Thread Starter
    Member
    Join Date
    May 2006
    Posts
    46

    Resolved [RESOLVED] obtaining the name of the text in textbox

    Code:
    Private Sub Test_Click()
    
      Dim RetVal As Long
      On Error Resume Next
      
      Dim stDocName As String
      Dim stLinkCriteria As String
      Dim tPath As String
    
        stDocName = "ImageToolPath form"
        DoCmd.OpenForm stDocName, , , stLinkCriteria
         
        tPath = Path1
      DoCmd.Close  
      
      RetVal = ShellExecute(0, "open", tPath & "\ImageTool.exe", "", "", 1)
    
    End Sub
    Hi all, upon clicking Test_Click(), another form "ImageToolPath form" will be opened. This form has a textbox by the name of Path1 whose recordsource is set to a particular table. I want to obtain the text in Path1 by using the statement in red so tat i can use it to launch my exe file in shellExecute.

    However, the value of tPath is always NULL.. can anyone help me pls...?? thks

    FT

  2. #2

    Thread Starter
    Member
    Join Date
    May 2006
    Posts
    46

    Re: obtaining the name of the text in textbox

    my prob has been resolved as RobDog888 answered by query in the other post.. hence i do not need the answer to my post above as i can work it via another way..

    thks

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