This should be pretty simple...
All I need to do is copy a text box control from one report to another using code. I tried this:
DoCmd.OpenReport "SampleBillMaster", acViewDesign
Reports!SampleBillMaster!Text328.SetFocus
DoCmd.RunCommand acCmdCopy
But it gives me an error saying that the SetFocus method cannot be used in the current view. Any help would be much appreciated, a code sample would be even better! Thanx in advance...
All I need to do is copy a text box control from one report to another using code. I tried this:
DoCmd.OpenReport "SampleBillMaster", acViewDesign
Reports!SampleBillMaster!Text328.SetFocus
DoCmd.RunCommand acCmdCopy
But it gives me an error saying that the SetFocus method cannot be used in the current view. Any help would be much appreciated, a code sample would be even better! Thanx in advance...