can not find isam

tshow 2004-01-06 02:25:33
Option Explicit
Private varCONN As New ADODB.Connection
Private varCMD As New ADODB.Command
Private varRS As New ADODB.Recordset

Private Sub Comm8_Click()
Unload Me
End Sub

Private Sub Form_Load()
varCONN.Provider = "Microsoft.Jet.OLEDB.4.0"
varCONN.CursorLocation = adUseClient
varCONN.Mode = adModeReadWrite

varCONN.ConnectionString = "user id=admin;datasource=f:\temp1\pro5\stud.mdb"
varCONN.Open

End Sub

here is all code!very easy ,but how to deal?
just like: http://search.csdn.net/expert/topic/51/5105/2003/6/4/1873378.htm
...全文
75 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
tshow 2004-01-08
  • 打赏
  • 举报
回复
嘻嘻,龙卷风啊,我的代码就是用的adodb库啊
online 2004-01-07
  • 打赏
  • 举报
回复
强烈建议使用adodb对象
adodc的问题比较多

tshow 2004-01-07
  • 打赏
  • 举报
回复
接着讨论,呵呵,后来的也有分!另外加不违规吧?
问题是这样的:
用Adodc可以先连通,然后代码也可以通过了!
如果先开一个工程,同样的代码还是报错。在里面再用adodc控件连一下,以后就可以了

百思不得其解,为什么?
应该说这段代码不长,不复杂,但问题就在这里,以前没遇到过。郁闷!

online 2004-01-06
  • 打赏
  • 举报
回复
试一下

Public Const DB_PWS = ""
Public Const DB_USERID = ""
Public Const DB_PWS = ""
Public DbFileName As String
Public conn As ADODB.Connection

Set conn = New ADODB.Connection

If Right(App.Path, 1) = "\" Then
apppath = App.Path
Else
apppath = App.Path & "\"
End If

DbFileName = apppath & "article.mdb"
ConnectString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
DbFileName & ";Persist Security Info=False;"

On Error Resume Next
With conn
.CursorLocation = adUseClient
.Open ConnectString, DB_USERID, DB_PWS
End With
tshow 2004-01-06
  • 打赏
  • 举报
回复
天啊,没人性啊,居然就突然可以了!!
不得其解!现在想让问题重现都不行啊!!
给这个兄弟100分,后来的没有了!!
郁闷的一天!
SoHo_Andy 2004-01-06
  • 打赏
  • 举报
回复
Dim cn As New ADODB.Connection
Private Sub Form_Load()
If cn.State = 1 Then
cn.Close
End If
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\db1.mdb"
End Sub

试试这样会不会出错,如果还是出错,则需要安装数据库驱动
安装MDACTYPE
tshow 2004-01-06
  • 打赏
  • 举报
回复
刚不能输中文,就是同那个找不到可插入isam的问题,以前遇到过,当时解决了,可现在也不知道当时是如何解决的,用的win2000 pro,office2000,mdactype.exe的2.7,2.6,2.5都有,注册标里---/jet/4.0/isam format/中有3.X,2.x,现在问题处在那里,我愈整愈糊涂了,各位高人指路,在线等!!!分不是问题,我有4000多分!!!!!!!!!
TSE(Tiny Search Engine) ======================= (Temporary) Web home: http://162.105.80.44/~yhf/Realcourse/ TSE is free utility for non-interactive download of files from the Web. It supports HTTP. According to query word or url, it retrieve results from crawled pages. It can follow links in HTML pages and create output files in Tianwang (http://e.pku.edu.cn/) format or ISAM format files. Additionally, it provies link structures which can be used to rebuild the web frame. --------------------------- Main functions in the TSE: 1) normal crawling, named SE, e.g: crawling all pages in PKU scope. and retrieve results from crawled pages according to query word or url, 2) crawling images and corresponding pages, named ImgSE. --------------------------- INSTALL: 1) execute "tar xvfz tse.XXX.gz" --------------------------- Before running the program, note Note: The program is default for normal crawling (SE). For ImgSE, you should: 1. change codes with the following requirements, 1) In "Page.cpp" file, find two same functions "CPage::IsFilterLink(string plink)" One is for ImgSE whose urls must include "tupian", "photo", "ttjstk", etc. the other is for normal crawling. For ImgSE, remember to comment the paragraph and choose right "CPage::IsFilterLink(string plink)". For SE, remember to open the paragraph and choose righ "CPage::IsFilterLink(string plink)". 2) In Http.cpp file i. find "if( iPage.m_sContentType.find("image") != string::npos )" Comment the right paragraph. 3) In Crawl.cpp file, i. "if( iPage.m_sContentType != "text/html" Comment the right paragraph. ii. find "if(file_length < 40)" Choose right one line. iii. find "iMD5.GenerateMD5( (unsigned char*)iPage.m_sContent.c_str(), iPage.m_sContent.length() )" Comment the right paragraph. iv. find "if (iUrl.IsImageUrl(strUrl))" Comment the right paragraph. 2.sh Clean; (Note not remove link4History.url, you should commnet "rm -f link4History.url" line first) secondly use "link4History.url" as a seed file. "link4History" is produced while normal crawling (SE). --------------------------- EXECUTION: execute "make clean; sh Clean;make". 1) for normal crawling and retrieving ./Tse -c tse_seed.img According to query word or url, retrieve results from crawled pages ./Tse -s 2) for ImgSE ./Tse -c tse_seed.img After moving Tianwang.raw.* data to secure place, execute ./Tse -c link4History.url --------------------------- Detail functions: 1) suporting multithreads crawling pages 2) persistent HTTP connection 3) DNS cache 4) IP block 5) filter unreachable hosts 6) parsing hyperlinks from crawled pages 7) recursively crawling pages h) Outputing Tianwang format or ISAM format files --------------------------- Files in the package Tse --- Tse execute file tse_unreachHost.list --- unreachable hosts according to PKU IP block tse_seed.pku --- PKU seeds tse_ipblock --- PKU IP block ... Directories in the package hlink,include,lib,stack,uri directories --- Parse links from a page --------------------------- Please report bugs in TSE to MAINTAINERS: YAN Hongfei * Created: YAN Hongfei, Network lab of Peking University. * Created: July 15 2003. version 0.1.1 * # Can crawl web pages with a process * Updated: Aug 20 2003. version 1.0.0 !!!! * # Can crawl web pages with multithreads * Updated: Nov 08 2003. version 1.0.1 * # more classes in the codes * Updated: Nov 16 2003. version 1.1.0 * # integrate a new version linkparser provided by XIE Han * # according to all MD5 values of pages content, * for all the pages not seen before, store a new page * Updated: Nov 21 2003. version 1.1.1 * # record all duplicate urls in terms of content MD5

7,763

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧