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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error 451 assigning control on tab to variable in a class module

Status
Not open for further replies.

abzmalone

Programmer
Apr 6, 2000
3
GB
I have a class to which I pass a form object.&nbsp;&nbsp;The purpose of the class is to manage the UI side of things for 6 control heavy forms.<br><br>The form object is passed from the calling form to a Property Let and Property Get pair – prpCallingForm.<br>My problem arises when I want to point to a control on a page of a tabbed control on the calling form using a module level variable.<br><br>So as to cut down on clutter and ease of use,&nbsp;&nbsp;I want to assign the equivalent of the following string:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tabMyTab(&quot;pgePrinters &quot;).Controls(&quot;txtSupplier&quot;),<br>to a module level variable.<br> <br>I have dimmed a module level variable to hold the control object viz. mtxtSupplier as textbox and was looking to point to it by going PrpCallingForm.mtxtSupplier.<br><br>Each time it gets to this line it generates a 451 error – Property Let procedure not defined and Property Get procedure did not return an object.&nbsp;&nbsp;I am doing this in Access 2000 and am confounded.&nbsp;&nbsp;I would really appreciate any ideas whatsoever at all.<br><br>Many thanks<br><br>Abz
 
since you're returning an object you need a property set procedure and not let.<br><br>any help? <p>mr s. <;)<br><a href=mailto: > </a><br><a href= > </a><br>why does it never do what is says it does in the manual?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top