Feb 5, 2001 #1 savok Technical User Jan 11, 2001 303 AT Can anyone give an example on how I would connect to ODBC using VB? Also anyone have a clue why the following line Dim db as database gives me this error? 'User-defined type not defined' thanks
Can anyone give an example on how I would connect to ODBC using VB? Also anyone have a clue why the following line Dim db as database gives me this error? 'User-defined type not defined' thanks
Feb 7, 2001 #2 sixsmithc Technical User Feb 2, 2001 21 GB Hi VB does not automaticaly reference the DAO controls and this means Database has not been defined as a type. You need to go to the PROJECT menu, then REFERENCES and in the list you are given you will be able to tick Microsoft DAO (version) Libary. This includes all the variables and events you need. Upvote 0 Downvote
Hi VB does not automaticaly reference the DAO controls and this means Database has not been defined as a type. You need to go to the PROJECT menu, then REFERENCES and in the list you are given you will be able to tick Microsoft DAO (version) Libary. This includes all the variables and events you need.