View Full Version : chrisk; Thanks again, Please respond....


majette97
06-26-2001, 05:55 AM
Aname is a global variable which has a value.

When I code the following:

Forms!change_timecard!change_timecard_sub!txtAppNa me.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
06-27-2001, 02:13 AM
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
06-27-2001, 09:41 AM
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!txt AppName = AName

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