chrisk; Thanks again, Please respond.... (1 Viewer)

majette97

Registered User.
Local time
Today, 09:57
Joined
Apr 26, 2001
Messages
23
Aname is a global variable which has a value.

When I code the following:

Forms!change_timecard!change_timecard_sub!txtAppName.text = Aname

I receive ERROR: 'The property is read only and can't be set.'

Where should I change the property so that the value will display?

Thanks for your quick responses!
 

chrisk

Registered User.
Local time
Today, 09:57
Joined
Apr 24, 2001
Messages
13
Sorry not to reply before - couldn't check the board yesterday.

Why are you using the .text property? If txtAppName is a textbox you want to set the value property, which is the default, ie

Forms![change_timecard]![change_timecard_sub]![txtAppName] = Aname

(BTW, it is much easier to follow the thread if you add your new questions onto the end of the original. I can't remember what code you posted)

Chris.
 

majette97

Registered User.
Local time
Today, 09:57
Joined
Apr 26, 2001
Messages
23
Below is my code and now I am getting a Runtime Error : 'This Record set is not updatable. Can you help! Thanks!

Set rs2 = CurrentDb.OpenRecordset(strSql)

Forms!change_timecard!change_timecard_sub.Form!txtAppName = AName

Me![txtTaskName] = TName
Me![Monday] = rs2![MON]
Me![Tuesday] = rs2![TUE]
Me![Wednesday] = rs2![WED]
Me![Thursday] = rs2![THU]
Me![Friday] = rs2![FRI]
 

Users who are viewing this thread

Top Bottom