You can't assign value to this object (1 Viewer)

tbasher

Registered User.
Local time
Today, 23:36
Joined
Jul 30, 2001
Messages
10
I have searched the forum for this problem, and the related issues have not helped. The below code is rather simple, but access will not allow me to insert the Property_ID into the form. Error: You can't assign value to this object. Any helpful advice would be much appreciated. Thanks.

Dim stDocName As String
Dim stLinkCriteria As String
Dim Property_ID As Integer

Property_ID = Me![PropertyID]
stDocName = "Leave Message"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.GoToRecord , , acNewRec
Me![PropertyID] = Property_ID
 

raindrop3

Registered User.
Local time
Today, 23:36
Joined
Sep 6, 2001
Messages
98
The last sentence:

forms![formname]![controlname] = property_id

I'am not sure about this.

Albert
 

tbasher

Registered User.
Local time
Today, 23:36
Joined
Jul 30, 2001
Messages
10
Great, That worked. Thank you so much!
 

Users who are viewing this thread

Top Bottom