A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Run-time error on setting textbox



 
 
Thread Tools Display Modes
  #1  
Old January 17th, 2008, 07:35 PM posted to microsoft.public.access.forms
Robert[_6_]
external usenet poster
 
Posts: 189
Default Run-time error on setting textbox

I am trying to set a value to a textbox on a subform from a selection in a
popup form. The textbox is bound to a table field (which is a foreign key
/ number field). The listbox on the popup returns a number. When I do:

Forms!frmMainform!frmSubform.Form!txtNumber = Me.lstbox

I get the following error:

Run-time error 2448
You can't assign a value to this object

I have another very similar form where I am able to set a value into a bound
textbox. Why, then, can't I do it on this form? Is there some property
that is set wrong or something? I need to be able to set this value in the
table.

Robert



  #2  
Old January 17th, 2008, 10:51 PM posted to microsoft.public.access.forms
Robert[_6_]
external usenet poster
 
Posts: 189
Default Run-time error on setting textbox

I think I found the problem, still checking. If it's anything that would be
of interest to anybody, I'll post back here. Thanks.

"Robert" wrote in message
. ..
I am trying to set a value to a textbox on a subform from a selection in a
popup form. The textbox is bound to a table field (which is a foreign key
/ number field). The listbox on the popup returns a number. When I do:

Forms!frmMainform!frmSubform.Form!txtNumber = Me.lstbox

I get the following error:

Run-time error 2448
You can't assign a value to this object

I have another very similar form where I am able to set a value into a
bound textbox. Why, then, can't I do it on this form? Is there some
property that is set wrong or something? I need to be able to set this
value in the table.

Robert






 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:11 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.