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  

"You cant assign a value to this object"



 
 
Thread Tools Display Modes
  #1  
Old March 28th, 2005, 11:24 AM
LJG
external usenet poster
 
Posts: n/a
Default "You cant assign a value to this object"

I have a form the gets values from a combo box onto the main form, what I
want to do is now get these values into the main form records:

Private Sub Form_BeforeUpdate(Cancel As Integer)
Me.txt3_rate = Me.Ctl3yrlease_rate
End Sub

When I try this I get an error message:

"You cant assign a value to this object"

What is wrong with this ?

Thanks
Les


  #2  
Old March 29th, 2005, 05:09 AM
Ken Snell [MVP]
external usenet poster
 
Posts: n/a
Default

Nothing appears wrong with the code that you've posted, but obviously the
object represented by txt3_rate is not capable of being assigned a value.
Tell us more about the form's design and setup.

--

Ken Snell
MS ACCESS MVP

"LJG" wrote in message
...
I have a form the gets values from a combo box onto the main form, what I
want to do is now get these values into the main form records:

Private Sub Form_BeforeUpdate(Cancel As Integer)
Me.txt3_rate = Me.Ctl3yrlease_rate
End Sub

When I try this I get an error message:

"You cant assign a value to this object"

What is wrong with this ?

Thanks
Les



 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exclusive access to the database Steve Huff General Discussion 17 December 24th, 2004 06:23 PM
"You can't assign a value to this object" eddiec General Discussion 11 December 1st, 2004 11:25 PM
Can't assign a value to object awm Using Forms 5 November 26th, 2004 07:33 AM
Error 2448 - Can't assign a value to this object SD Diamonds Using Forms 0 August 31st, 2004 10:28 PM
Playing an embedded wave object (OLE) Chris McConnell General Discussion 1 June 29th, 2004 03:12 AM


All times are GMT +1. The time now is 10:39 PM.


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