A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to create a custom control in runtime in msaccess?



 
 
Thread Tools Display Modes
  #1  
Old November 21st, 2005, 12:58 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default How to create a custom control in runtime in msaccess?

Hi,
my doubt is how to create a custom control say richtextboxor some other
control using method CreateReportControl or some other available
method.Thanks in advance , if you come to know please explain.


  #2  
Old November 21st, 2005, 01:09 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default How to create a custom control in runtime in msaccess?

If you mean you are using Access Runtime, then I believe it is not possible
to create a control on a report. If you mean you want to add a control to a
report at time of execution, that can be done - but only in design mode.

The best way to handle either situation is to add the control in design
mode. Then use code to set its visible property to true or false as you
need the control to be seen. You can also use code to move the control (and
other controls) and to change the controls source, etc.

"Surendra" wrote in message
lkaboutsoftware.com...
Hi,
my doubt is how to create a custom control say richtextboxor some other
control using method CreateReportControl or some other available
method.Thanks in advance , if you come to know please explain.




  #3  
Old November 21st, 2005, 01:10 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default How to create a custom control in runtime in msaccess?

Surendra wrote:
Hi,
my doubt is how to create a custom control say richtextboxor some
other control using method CreateReportControl or some other available
method.Thanks in advance , if you come to know please explain.


While common in other environments, any attempt to create controls during
runtime in Access are doomed to failure. You have to have the container object
(form/report) open in design view to create controls and there is a lifetime
limit on how many controls can be created on any one from or report that you
will eventually hit.

The usual advice is to create whatever controls you might need during design
time and make them hidden. Then it is fairly easy to make those controls
visible and change their properties in runtime.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
create custom property to run remote control ApostolisA Visio 11 June 5th, 2008 01:25 AM
create custom layout and add to task pane Sandy Powerpoint 0 November 18th, 2005 04:25 PM
Reporting subreport total on main report BobV Setting Up & Running Reports 22 November 1st, 2005 03:19 AM
Outlook 2003 will not create custom dictionary ThomasAJ General Discussion 0 October 22nd, 2005 06:36 AM
Having trouble with multi-select list box in Access brandelfly New Users 4 February 10th, 2005 07:36 PM


All times are GMT +1. The time now is 04:02 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.