Can't open data control in MS Visual Basic Editor for MS project 
Author Message
 Can't open data control in MS Visual Basic Editor for MS project

Hi,
I created a form that displays an Access database in Visual Basic 6.0,
the stand alone application. But I can't seem to open the form in the
Visual Basic Editor for MS project. Hence, I tried creating the form
again in the Editor but it does not support the "Data control". Is
this deliberate? Or is there a way to get around it?
Bonsang


Wed, 27 Jul 2005 08:04:11 GMT  
 Can't open data control in MS Visual Basic Editor for MS project
The forms and controls used in VB are different to those used in VBA (the
cut-down version of VB used in Office apps). They are simply not
interchangeable. Some controls work in both, but many don't; and the
form-handling itself is different also. Sadly, you have to pick your development
and environment and stick to it. And yes, it's deliberate: VBA has enough
functionality that Microsoft could boast about it for marketing purposes, but
not enough for serious development -- for that you have to buy VB also.

One work around is to do all the coding and forms in VB and either:

a) create a reference to Project from within VB, and call the methods etc from
your VB code, or

b) compile your VB code to a DLL, add that as a reference to your VBA project,
and call your projects methods (which can include displaying a form) from your
VBA code.


Quote:
> Hi,
> I created a form that displays an Access database in Visual Basic 6.0,
> the stand alone application. But I can't seem to open the form in the
> Visual Basic Editor for MS project. Hence, I tried creating the form
> again in the Editor but it does not support the "Data control". Is
> this deliberate? Or is there a way to get around it?
> Bonsang



Wed, 27 Jul 2005 09:13:03 GMT  
 Can't open data control in MS Visual Basic Editor for MS project
Thanks!
Can you be a little more specific about how I can do either a) or b)?
Specfically, a) how do I create a reference to Project from within
VB?, and b) how do I do b) in general? Or if you have sample snippets
of code, that would even be better.
Thank you,
Bonsang
Quote:
> One work around is to do all the coding and forms in VB and either:

> a) create a reference to Project from within VB, and call the methods etc from
> your VB code, or

> b) compile your VB code to a DLL, add that as a reference to your VBA project,
> and call your projects methods (which can include displaying a form) from your
> VBA code.



> > Hi,
> > I created a form that displays an Access database in Visual Basic 6.0,
> > the stand alone application. But I can't seem to open the form in the
> > Visual Basic Editor for MS project. Hence, I tried creating the form
> > again in the Editor but it does not support the "Data control". Is
> > this deliberate? Or is there a way to get around it?
> > Bonsang



Fri, 29 Jul 2005 09:23:17 GMT  
 Can't open data control in MS Visual Basic Editor for MS project


Quote:
> Thanks!
> Can you be a little more specific about how I can do either a) or b)?
> Specfically, a) how do I create a reference to Project from within
> VB?, and b) how do I do b) in general? Or if you have sample snippets
> of code, that would even be better.
> Thank you,
> Bonsang

a) Go to Project > References and scroll down till you come the Microsoft
Project library (will be listed if you have Project installed). Check the box
alongside.

b) Create your VB DLL. Open Project, switch to VBA. Go to Tools > References.
Scroll down till you find the DLL you created. Check the box alongside.

Quote:
> > One work around is to do all the coding and forms in VB and either:

> > a) create a reference to Project from within VB, and call the methods etc
from
> > your VB code, or

> > b) compile your VB code to a DLL, add that as a reference to your VBA
project,
> > and call your projects methods (which can include displaying a form) from
your
> > VBA code.



> > > Hi,
> > > I created a form that displays an Access database in Visual Basic 6.0,
> > > the stand alone application. But I can't seem to open the form in the
> > > Visual Basic Editor for MS project. Hence, I tried creating the form
> > > again in the Editor but it does not support the "Data control". Is
> > > this deliberate? Or is there a way to get around it?
> > > Bonsang



Fri, 29 Jul 2005 10:54:35 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Visual Basic Editor/Macro Editor don't open

2. Locating Visual Basic Editor in MS-Access 97

3. Command button won't make use of module driving MS Project from MS Access 2000

4. menu editor/ visual basic -> ms acces

5. data exchange between MS Excel and MS Project

6. Saving data in MS Project 98 to MS Access

7. How does one look at data in an open MS access aplication from MS Word

8. MS Project 98 vs Ms Project 2000

9. ASP.NET update task in MS Project Server and MS Project

10. Conversion from MS project 95 to MS project 2000

11. After adding tasks outside of MS Project, saving in MS Project deletes them

12. How does one look at data in an open MS access aplication from MS Word

 

 
Powered by phpBB® Forum Software