Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot set option group control source

Status
Not open for further replies.

pandapark

Technical User
Jan 29, 2003
92
GB
I have a form with unbound fields. When the users commits the record to live they can edit the record at any time which sets teh control source in code so the fields are populated. works fine except for option groups.
for example in the table fieldname TrainType may have a value of 2.
When the user edits that record it says

Forms!formname!Frame1000.controlsource = "Traintype"

it doesn't carry the value across though ?

any ideas ?
thanks
 
Panda

OptionGroups have either a boolean expression either Yes/No or True/False so if I understand it properly when you set TrainType your are trying to set it to a String value "Traintype".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top