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

controls not showing up on form

Status
Not open for further replies.

newprogamer

Programmer
Sep 22, 2004
107
US
Hello,

I have added an ADO data control and a datagrid to my form by adding them to the toolbox and draging them to the form. This allows me to get data from a table and display it in the datagrid. The problem is that I have tried to run this program on two other Windows XP computers and the code stops running at Adodc1.Visible = False. The error message is Can't find project or library". What can I do to use these controls on any computer?

Thanks for your help!
 
Hard to say, as there is not really all that much info there. However, if it stops with an error message saying can't find project or library, then

either you have a problem with scope; OR
a problem with references.

Gerry
 
It may be possible that the workstations you tested it on does not have the DataGrid control installed. I would check that out.
 
How do I install or reference the MS ADO Data Control 6.0 and Microsoft Data Grid Control 6.0? They are missing on the computers I am trying to run the program on. Is there a way to work around this problem?
 
If I understand correctly (and there is LOTS of times I do not) additional controls are added to the file Tools > Additional controls. Once added they are part of the file itself. Since you say you have already added the controls, that is likely not the issue. it is more likely that there need to be a reference made on the other machines.

I think.

In which case, you need to check for those references, and add them if they are not there.

Your file needs VBA Extensibility to start. You use that to check the references available. VBE.VBProject.References - depending on the application - then use AddFromFile to make the references.

Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top