Hi, i'm trying to change Form captions using code line:
Forms("oForm.Name")("oCtrl.Name").Caption = "newcaption"
Everytime i try to run the code the program flow just steps into it and then steps out without doing anything?? I have checked oForm.Name and oCtrl.Name and they both contain the correct values. I'm sure i had this working at one point but must have changed something without realising.
Any suggestions much appreciated.
Forms("oForm.Name")("oCtrl.Name").Caption = "newcaption"
Everytime i try to run the code the program flow just steps into it and then steps out without doing anything?? I have checked oForm.Name and oCtrl.Name and they both contain the correct values. I'm sure i had this working at one point but must have changed something without realising.
Any suggestions much appreciated.