Re: Reference a subform
From: Allen Browne (AllenBrowne_at_SeeSig.Invalid)
Date: 02/03/05
- Next message: Alex Dybenko: "Re: Default Current Date on Calendar Control."
- Previous message: Alex Dybenko: "Re: MSComDlg.CommonDialog problems"
- In reply to: Leonard: "Re: Reference a subform"
- Next in thread: Stephen Haley: "Re: Reference a subform"
- Reply: Stephen Haley: "Re: Reference a subform"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 3 Feb 2005 14:31:49 +0800
Where did your variable strNameofForm come from?
Could you pass a reference to the form itself, instead of the name of your
form?
Example, create your function like this:
Public Function RunMyZoomBox(frm As Form)
and then call it like this:
Call RunMyZoomBox(Me)
-- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "Leonard" <Leonard@discussions.microsoft.com> wrote in message news:DC1FEBEF-DDE2-4242-B4AE-215213EF8988@microsoft.com... > Hi Allen > > Thanks for the message. I've used the shift+f2 tool and it works well, but > I > wanted to customise my own zoom form. > > Any thoughts on the subform referencing? > > Leonard > > > "Allen Browne" wrote: > >> You can pop up the built-in zoombox by pressing Shift+F2. >> >> Alternatively, you could put a command button beside your text box, and >> put >> this into its Click event procedure: >> Me.[NameOfYourTextboxHere].SetFocus >> RunCommand acCmdZoomBox >> >> >> "Leonard" <Leonard@discussions.microsoft.com> wrote in message >> news:A27715F1-9F21-4453-98F4-3B5D36B5BEA5@microsoft.com... >> > Hi >> > I've made a generic form to allow text in a textbox on any form to be >> > 'zoomed' to a bigger textbox on a popup form. When the zoom form closes >> > it >> > updates the textbox control on the original form using: >> > >> > Set frmNameofForm = Forms(strNameofForm) >> > frmNameofForm.[txbLetter] = Me.txbLetterZoom >> > >> > However, how do I do this when the control is on a subform? >> > >> > And, is this called explicit or implicit referencing, or something >> > else - >> > just so I can refer to it in the future. >> > >> > Many thanks >> > Leonard
- Next message: Alex Dybenko: "Re: Default Current Date on Calendar Control."
- Previous message: Alex Dybenko: "Re: MSComDlg.CommonDialog problems"
- In reply to: Leonard: "Re: Reference a subform"
- Next in thread: Stephen Haley: "Re: Reference a subform"
- Reply: Stephen Haley: "Re: Reference a subform"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|