我有很多以下样式的文本
From: [email protected]
To: [email protected]
Subject: hello
Date: Mon, 14 Jun 2004 12:05:11 +0800
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_NextPart_000_0002_C19F45E1.91AD5C6C"
.............以下略
主要是用前四行,后面的算邮件内容,建立以from,to,subject,data,content为字段名称的access数据库,然后实现多文件的导入。劳烦各位大侠给小女指点一下吧,最好是代码,感激不尽啊!!
还有个问题,建好的这个数据库怎么实现基于日期的模糊查询?拜托也帮一下吧!!万分感谢啊!!
From: [email protected]
To: [email protected]
Subject: hello
Date: Mon, 14 Jun 2004 12:05:11 +0800
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_NextPart_000_0002_C19F45E1.91AD5C6C"
.............以下略
主要是用前四行,后面的算邮件内容,建立以from,to,subject,data,content为字段名称的access数据库,然后实现多文件的导入。劳烦各位大侠给小女指点一下吧,最好是代码,感激不尽啊!!
还有个问题,建好的这个数据库怎么实现基于日期的模糊查询?拜托也帮一下吧!!万分感谢啊!!
解决方案 »
- VBA里面有转义字符之类的东西吗?
- vb webbrowser 的一段程序,大家帮我看看那里出错啦!
- 写dll时,有问题
- 高分在线等~~~~~~~~
- sql-server 能通过internet 向远程的计算机发布信息吗?
- 利用Get Prite Profiletring读取文件时,若不知道LpApplriction Name及Lpley Name,如何通过循环读取这些数据到字符串数组中?
- **********拜师学艺(一)************
- 请教两个问题.哦哦哦?
- 如何设置装有两网卡的NT,使其具有路由功能???急!!!
- 请问怎样在vb程序中得到其他程序中控件(比如textbox)的名字(比如Text1)
- 溢出问题,初学VB.
- 请教变量的存活期
Private Sub Command1_Click() Dim MyConn As Database
Dim workJet As DAO.Workspace
Dim sql As String
Dim temp As String
Dim i As Integer
Set workJet = Workspaces(0)
Set MyConn = workJet.OpenDatabase(App.Path & "\VolSnDB.mdb")
'假设 table1 只有一个文本字段
While i <= Len(Text1.Text) - 1
temp = Left(Right(Text1.Text, Len(Text1.Text) - i), 1)
If (temp <> Chr(13) And temp <> Chr(10)) Then
sql = sql & temp
End If
i = i + 1
Wend
sql = "insert into table1 values('" & sql & "')"
MyConn.Execute sql, dbFailOnError
End Sub
是用的sql和dao? 我在这方面很是白痴,能不能写的详细一点,小女这厢有礼了!!