Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Issue with "LaunchCD" in code

Status
Not open for further replies.

tontenn

Vendor
Dec 29, 2006
54
AU
Hi Guys

I want to use the code

Me!Path = LaunchCD(Me)

In a form associated with a button to open up a folder dialog box, find the file that the record associates with and then save the path in to the text box "Path" so as I can click on that in future and be taken straight to the file on my server.

But when i do this I get the debug error message

"Compile Error:
Sub or Function not defined"

Does anyone know what Im doing wrong??

Cheers in advance

Tones (From Oz)
 
What is supposed to be LaunchCD ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Looks like your trying to call a function? What is the code for LaunchCD?


Randy
 
Oh i was hoping you would be able to answer that.
It was a code I used for another form just like this, but from the response you gave me it obviously doesnt mean anything to you guys.

Ok I'll go and try something else. Sorry to annoy you.
 
How are ya tontenn . . .

For what you've presented you need to show the code! . . .

[blue]Is that too much to ask? . . .[/blue]

Calvin.gif
See Ya! . . . . . .

Be sure to see FAQ219-2884:
 
Oh Ok Sorry

This is the code in my button

Private Sub Command2245_Click()
Me!Path = LaunchCD(Me)
End Sub

Maybe I have put it in the wrong place. Not sure.

Cheers
Tony
 
It was a code I used for another form just like this
LaunchCD is probably a function defined in the code module of this another form.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
You need to either:
1. Copy the LaunchCD function to the new form
or
2. Make the LaunchCD a global function that can be called from any form


 
Thanks guys

Cant seem to understand how to do it, so i will just move on and just do it manually.

Thanks for your thoughts and efforts though.
tones
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top