Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / ActiveX Controls / October 2004

Tip: Looking for answers? Try searching our database.

objectvariable not set

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Serdar - 25 Oct 2004 11:48 GMT
I am creating a simple usercontrol which has a textbox on it.

I add it to my project and define names with Vb control wizard. I think it
sets up all the code I need ( such as Property let )

I put the control on a form1 in my project

I define  "k as new usercontrol1"  , but  when I want to use
k.text=anothertext.text it says
"object variable not set"

There mustbe a way to set k to .... an object . I tried several combinations
but it did not work

I will be gratefull if anybody helps me

Best Regards

Serdar Tibet
Alex Dybenko - 25 Oct 2004 12:05 GMT
if you have a control on a form - then you have to write:

dim k as usercontrol1

set k = me.Control1

k.text=anothertext.text

Signature

Alex Dybenko (MVP)
http://Alex.Dybenko.com
http://www.PointLtd.com

>I am creating a simple usercontrol which has a textbox on it.
>
[quoted text clipped - 16 lines]
>
> Serdar Tibet
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.