realbasic-betas.mbox
[Top] [All Lists]

How do you get ride of ODBC select DB dialog?

To: REALbasic Betas <realbasic-betas at lists dot realsoftware dot com>
Subject: How do you get ride of ODBC select DB dialog?
From: Donald Myers <mylists2 at mac dot com>
Date: Tue, 30 Jul 2002 10:00:40 -0400
I have the following code

dim db1 as ODBCdatabase

  db1 = new ODBCDatabase
  
  db1.Host = "201.68.121.17"
  db1.DatabaseName = "orders"
  db1.UserName = "user"
  db1.Password = "1234"
  db1.DataSource = "orderdb"
  
  if not db1.connect then
    msgbox "Couldn't open database"
    return
  end if
  

When it hits the if not... It brings up the "select ODBC database dialog"

Why isn't it going automatically??

BTW after I select the database everything works fine.

Don Myers



<Prev in Thread] Current Thread [Next in Thread>