肯定能连接,我作过。
用select语句检索。
用select语句检索。
解决方案 »
- 怎样让自己的浏览器成为默认的浏览器
- 关于银行支付密码器的密码算法
- 需要使用ADODB.Connection、ADODB.recordset等,需要import什么,才能使用其中定义的常量
- 球队单循环算法(有兴趣者都可进)
- VB调用存储过程为什么不能返回记录集,急!请帮忙
- 关于控件先后顺序遮挡的问题
- VB中如何将存入access中的图片(Base64编码写入)读出并显示?
- 百分求救——把ADO查询出来的记录集导到excel里,或者把一个表导到excel里
- 如何用ListView列出所有在任务条上的程序名称和他们的图标?
- 如何判断一个字符串中有空格?比如"c:\my document"中间就有空格。
- 一個很簡單且容易拿分的連接問題,試試看…
- 请问:是不是有一个API函数可以调用默认的发送邮件的程序,应该怎么写?谢谢。
试着用一用Microsoft DAO 3.60,应该没问题。
ID: Q257780
--------------------------------------------------------------------------------
The information in this article applies to:Microsoft Visual Basic Professional and Enterprise Editions for Windows, version 6.0--------------------------------------------------------------------------------
SYMPTOMS
When you attempt to connect to a Microsoft Access 2000 database by using either the standard Data control or the Data Form Wizard, you see the following error message where '...\databasename.mdb' is the absolute filename of the Access 2000 database: Unrecognized database format '...\databasename.mdb'" CAUSE
The standard Data control uses Data Access Object (DAO) 3.51 to connect to Access databases by using the Jet 3.51 engine.The Data Form Wizard uses the Jet 3.51 OLE DB Provider to connect to Access databases by using the Jet 3.51 engine.The Jet 3.51 engine can connect to Access database versions prior to Access 2000, but cannot connect to Access 2000 databases. RESOLUTION
These problems are not seen with the Data control and Data Form Wizard that come with Microsoft Visual Studio 6.0 Service Pack 4. Prior to service pack 4 for Visual Studio 6.0, the workaround for the standard Data control problem was to open a Recordset using DAO code, and then assign it to the Data control's Recordset. This workaround is described in Microsoft Knowledge Base article Q238401 in the "References" section. Prior to service pack 4 for Visual Studio 6.0, the workarounds for the Data Form Wizard problem were: Open the Access database through an ODBC DSN that uses the Access ODBC driver version 4.0.
Build the form manually using Jet 4.0 to connect to the database.
See these workarounds in the Microsoft Knowledge Base article Q242010 in the "References" section.NOTE: There are known issues when connecting to Access 2000 on certain localized versions of Visual Basic 6.0 Service Pack 4. This is scheduled to be fixed in Visual Basic 6.0 Service Pack 5. However, this bug is fixed for the English version (North America) of Visual Basic 6.0 Service Pack 4. STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Visual Studio 6.0 Service Pack 4.For additional information about Visual Studio service packs, click the article numbers below to view the articles in the Microsoft Knowledge Base: Q258648 INFO: Visual Studio 6.0 Service Pack 4, What, Where, Why
Q258649 HOWTO: Tell That Visual Studio 6.0 Service Pack 4 Is Installed
You can download Visual Studio Service Pack 4 from the following Microsoft Web site:
Visual Studio Product UpdatesMORE INFORMATIONSteps to Reproduce Using the Standard Data Control
In Visual Basic, create a new Standard EXE project. Project1 is created by default. Form1 is added by default.
Place a Data control onto Form1. Data1 is created by default.
Set the DatabaseName property of the Data control to an Access 2000 database.
Attempt to set the RecordSource property of the Data control by clicking the drop-down list, and note that the error message in the "Symptoms" section appears.
Steps to Reproduce Using the Data Form Wizard
In Visual Basic, create a new Standard EXE project. Project1 is created by default. Form1 is added by default.
If the Data Form Wizard is not listed in Add-Ins menu, do the following:
From the Add-Ins menu, select Add-In Manager.
In the list of Available Add-Ins, select Data Form Wizard.
Click to check the Loaded/Unloaded checkbox.
Click OK, and note that the Data Form Wizard is now on the Add-Ins menu.
From the Add-Ins menu, select Data Form Wizard.
At the Introduction screen, click Next.
At the Database Type screen, select Access, and then click Next.
On the Database screen, click Browse, navigate to your Access database, and then click Open. When you click Next, the error message in the "Symptoms" section is displayed. REFERENCESQ238401 PRB: Unrecognized Database Format Error Upgrading to Access 2000
Q242010 PRB:The Data Form Wizard May Not Open an Access 2000 Database Additional query words: sp4 Keywords : kbCtrl kbDatabase kbDataBinding kbJET kbMDAC kbVBp600bug kbGrpVBDB kbGrpMDAC kbDSupport kbDAO360 kbMDAC250 kbVS600sp4fix
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug
Technology :
Last Reviewed: August 30, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.
--------------------------------------------------------------------------------
Send feedback to MSDN.Look here for MSDN Online resources.
afxgetmodulestate()->m_dwversion = 0x0601;