unbound text box (1 Viewer)

dreamz

Is God Like
Local time
Today, 22:56
Joined
Dec 21, 2005
Messages
48
hi

i've created a unbound text box and for my default value i've put the path of a spreadsheet i wanna import.

How would i get my macro to select fromt the form as apposed to the default path i put in manually.
 

Rickster57

Registered User.
Local time
Today, 14:56
Joined
Nov 7, 2005
Messages
431
import

If your code for importing uses the form's text box name then a user can put what ever they want in the text box and the import should work.

Make sure you assign a variable to that form field such as :

Dim MyImportFile as string

MyImportFile=Forms![myform].[mytextbox]

Then in your import code use MyImportFile for the file you want to import.

Hope this helps
 

dreamz

Is God Like
Local time
Today, 22:56
Joined
Dec 21, 2005
Messages
48
thanks, it did help. :D
 

Users who are viewing this thread

Top Bottom