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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help using a text box as part of a string

Status
Not open for further replies.

OC2

IS-IT--Management
Apr 2, 2001
59
SG
Hi, 2 hopefully quick problems.

I am trying to open an excel spreadsheet using Access whereby the user indicates the location in a text box.

Currently my text box named test uses this string ...

" "&me!test&" "

When I add this to this function

Set myXL = getobject(, " "&me!test&" " )

I get an error message saying

cannot find C:\test\asgt.xls

Yest if I do Set myXL = getobject (, "C:\test\asgt.xls")

it works fine.

Any ideas?

The same thing happens when i try to do a private const

Is there something im missing here because what it cant find is actually there and it recognises it when typing only the text in.

pls help

thx
 
lol, dont i feel stupid
thx for the response though :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top