Re: Connect to database via VBA/DAO/ODBC -
05-19-2005
, 02:39 PM
OK, I fixed it on my own, this is the following solution:
Set dbNorthwind = OpenDatabase("MYDB", dbDriverNoPrompt, True,
"ODBC;DSN=MYDB;Database=MYDB;UID=sysadm;PWD=")
But now I have a problem, to get a recordset out of the Database. I run
the following statement:
Set rdShippers = dbNorthwind.OpenRecordset("Select * from myTable")
and I get a message back, that it can not find the table. But it is
there. Can somebody tell me, what I am doing wrong?
Thanks in advance,
Oliver |