Question:
ODBC Connectivity for MS-ACCESS & VB?
fefe
2008-09-21 10:58:37 UTC
Can anybody please give me step by step instructions?? Also, my compiler shws "Dim db as Database" and "DIm rs as Recordsets" as user-defined datatypes and treats them as errors..What should I do?
Four answers:
Capt Crasher
2008-09-24 06:26:07 UTC
What version of Access can have a lot to do with it. In Access 2003 Here is what we use to "relink" Oracle tables (should work with any tables as long as You have the ODBC connect string, which You can copy and paste from the Table Properties in Design View):



Dim dbs, <> As Object



Set dbs = CurrentDb

Set <> = dbs.TableDefs![<>]



<>.Connect = "<>"

<>.RefreshLink



You can look it up in the Microsoft VBA Help Files as well.
Milind
2008-09-21 23:43:37 UTC
Project---->References

Mark Checkbox Microsoft DAO 3.51 Object Library.

(This will eliminate "User defined......." Error Message)



Use need to use 32bit ODBC connectivity and create DSN (Data Source Name).

For that:



Control Panel--->Administrative Tools--->Data Sorces(ODBC)



Alternatively you can use "Provider" with ADO instead of using DAO.



Difficult to mention all steps here.
?
2016-05-26 02:59:40 UTC
You need to clarify what you are asking.. Feel free to email me & I'll try to help you.
rahul g
2008-09-21 11:03:21 UTC
try using visual studio that makes it very easier


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...