|
|
Assigning Text Box Value to Variable?
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
|
|
0
|
|
|
|
Reply
|
Utf
|
5/1/2010 1:02:01 PM |
|
Your code, as given, works fine in v2003. You don't have another object named
"Subfolder" elsewhere in your app, do you?
I suppose it could be corrupted. You might try deleting the event and
recreating it.
--
There's ALWAYS more than one way to skin a cat!
Answers/posts based on Access 2000/2003
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-modules/201005/1
|
|
0
|
|
|
|
Reply
|
Linq
|
5/1/2010 3:21:07 PM
|
|
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
>
|
|
0
|
|
|
|
Reply
|
Utf
|
5/3/2010 7:46:30 PM
|
|
|
2 Replies
1019 Views
(page loaded in 0.036 seconds)
Similiar Articles: Assigning Text Box Value to Variable? - microsoft.public.access ...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 v... Assigning Variable from Combo Box - microsoft.public.access.forms ...Assigning Text Box Value to Variable? - microsoft.public.access ... assigning a null value of a date field to a date variable ... Toolbox Combo Box Assign Range Name Based ... Assigning value to text box in a form - microsoft.public.access ...Assigning Text Box Value to Variable? - microsoft.public.access ... Hello all, I have a simple form with a button and text field. All I want to do is press button and the ... Assign value to bound text box - microsoft.public.access ...Assigning value to text box in a form - microsoft.public.access ... Displaying value of a variable on a form - microsoft.public.access ... 2) - the control in which ... Can't Assign Value to this Object - microsoft.public.access ...I've got the global variables working (I can assign one to an >>unbound text box on the form), but when I try to assign the variable value >>to a bound text box, I get ... Displaying value of a variable on a form - microsoft.public.access ...Assigning Text Box Value to Variable? - microsoft.public.access ... Assign value to bound text box - microsoft.public.access ... Displaying value of a variable on a form ... Using Access form to assign values of variables in an Excel VBA ...Assigning Text Box Value to Variable? - microsoft.public.access ... Using Access form to assign values of variables in an Excel VBA ... Assigning a value to a variable in ... Assign text to numeric value - microsoft.public.excel.misc ...Assigning Text Box Value to Variable? - microsoft.public.access ... Assigning value to text box in a form - microsoft.public.access ... Assigning Text Box Value to ... assigning a null value of a date field to a date variable ...Assigning Text Box Value to Variable? - microsoft.public.access ... Assigning Text Box Value to Variable? - microsoft.public.access ..... field to a date variable ... Setting a textbox's default value with a variable - microsoft ...Setting a textbox's default value with a variable - microsoft ... I'm trying to programmatically set a textbox's default value ... Assigning Text Box Value to Variable ... Assigning PHP Variable To A Html Text Box - PHP | Dream.In.CodeOr, for cleaner code: <?php echo "<input type='text' name='something' value='{$phpvar}'>"; ?> For readability, it is recommended not to write a big block of HTML with ... Assigning Text Box Value to Variable? - microsoft.public.access ...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 v... Assign Textbox To Variable - VB.NET | Dream.In.CodeAssign Textbox to Variable: Put text from textbox into a variable ... you are only checking to see if the text box is ... Control A Textbox From Listbox Values; Empty ... C# Question, How do I assign the value of a textbox to a local ...C# Question, How do I assign the value of a textbox to a local variable ... so it can name the text file accordingly. I need to assign the value of TextBox2 to a variable ... Assign TextBox to variable - Microsoft Corporation: Software ...Assign TextBox to variable ... have a form and a textbox, I want to assign a value ... string will_text = System: tring::Copy ... 7/23/2012 6:18:28 PM
|
|
|
|
|
|
|
|
|