Hi
I need to insert the GdViewer ActiveX control in an MS Access 2007 form at runtime.
Does anyone have a code example how to do that?
MS Access ActiveX at runtime
Re: MS Access ActiveX at runtime
That does not work
Here is one way how do it
Dim ctl As Object
DoCmd.OpenForm "FormName", acDesign ' Form you want to add control to
Set ctl = CreateControl("FormName", acCustomControl)
ctl.OleData = Forms!Template!oGdViewer.OleData ' Template=Form where you have a control you want to "copy properties" from
Here is one way how do it
Dim ctl As Object
DoCmd.OpenForm "FormName", acDesign ' Form you want to add control to
Set ctl = CreateControl("FormName", acCustomControl)
ctl.OleData = Forms!Template!oGdViewer.OleData ' Template=Form where you have a control you want to "copy properties" from
Who is online
Users browsing this forum: No registered users and 2 guests