PC Review


Reply
Thread Tools Rate Thread

Assigning Text Box Value to Variable?

 
 
geeves1293
Guest
Posts: n/a
 
      1st May 2010
Hello all,

I have a simple form with a button and text field.

All I want to do is press button and the text field value is inserted into
the variable. I have done the following:-

Dim Subfolder As String
Subfolder = Me![Text1]

but it returns an error message of 'Object doesn't support this property or
method'.

Please could someone point me in the right direction.

Thank you

Graham

 
Reply With Quote
 
 
 
 
Dorian
Guest
Posts: n/a
 
      3rd May 2010
Subfolder might be a reserved word, try using another variable name. Also you
only need [ ] around a name if it has embedded spaces or special characters.
Are you sure there is a control called Text1, use the intellisense to make
sure, type Me. and then you will get a list.
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".


"geeves1293" wrote:

> Hello all,
>
> I have a simple form with a button and text field.
>
> All I want to do is press button and the text field value is inserted into
> the variable. I have done the following:-
>
> Dim Subfolder As String
> Subfolder = Me![Text1]
>
> but it returns an error message of 'Object doesn't support this property or
> method'.
>
> Please could someone point me in the right direction.
>
> Thank you
>
> Graham
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assigning a Variable to an Expression that Includes a Variable andVBA Property bluebird Microsoft Excel Programming 3 27th Apr 2009 07:38 AM
Assigning a variable Zack Microsoft Excel Worksheet Functions 3 11th Dec 2008 07:00 PM
Assigning a min to a variable Ed Microsoft Excel Programming 1 3rd Aug 2006 06:05 PM
Assigning a row to a variable Todd Microsoft Excel Programming 4 10th Jun 2004 06:49 PM
assigning variable value drew raj Microsoft Excel Worksheet Functions 1 27th Jul 2003 12:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:05 PM.