Link to home
Start Free TrialLog in
Avatar of rrr333222
rrr333222

asked on

Question about a Type (Table)?

I have a project in VB 4 that contains this line:

Dim myTableCB As Table

When I open it up in VB 6 and try to compile this I get an error. It no longer recognizes Table as valid type.

I am assuming that a reference to a component or something like that must be missing. But how do I go about finding which Reference Table was part of?


Avatar of EDDYKT
EDDYKT
Flag of Canada image

I believe you can check the project file: such as project1.vbp. You can open the project file by sending the file to notepad.
ASKER CERTIFIED SOLUTION
Avatar of rmichels
rmichels

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rmichels
rmichels

Also once you reference the DAO Library, Table should still be supported, but you should consider moving to the openrecordset call.
Avatar of rrr333222

ASKER

rmichels

I have a refrence to DAO 3.6. In the orriginal VB 4 version ther DAO is 2.5 or something like that. Could this make a diference?

I tried removing the DAO 3.6 and replaced it with 2.5/3.0 3.5 none allowed for the Table type.
hmmm..you are right, 3.5 or 3.6 will not compile with the Table type.

But I just tried 2.5 and 2.5/3.0 compatibility DAO and was able to compile with the Table type.

Check again..if it doesn't work, reject my answer :)