|
ACCESS做的产品管理系统可一键导入图片生成产品图册报价单-Access & SQL Server-ExcelHome技术论坛 - https://club.excelhome.net/threa ... tml?_dsign=0128ba05
图片导入到Access文件会很大。Access建立图片库具有可操作性吗?
批量导入员工照片,你会操作了吗?-Excel基础应用-ExcelHome技术论坛 - https://club.excelhome.net/thread-1135979-1-1.html
我现在用Excel+SQL方法管理图片,图片存放在指定目录下。
- '''EngName,ChiName,oNote,Path,Left1,Top1,Width1,Height1,Left2,Top2,Width2,Height2
- '''
- Function SheetSqlRs(FilePath, oAddress)
- ''
- Dim Str
- Str = "Select "
- Str = Str & "EngName,ChiName,oNote,Path,Left1,Top1,Width1,Height1,Left2,Top2,Width2,Height2"
- Str = Str & " From "
- Str = Str & "[" & FilePath & "].[" & oAddress & "] Where EngName <> Null"
- 'Debug.Print Str
- Dim Cn As ADODB.Connection
- Dim Rs As ADODB.Recordset
- Set Cn = New ADODB.Connection
- Set Rs = New ADODB.Recordset
- Cn.Open "Provider=Microsoft.ACE.OLEDB.12.0;Extended Properties='Excel 12.0;HDR=yes';data source=" & ThisWorkbook.FullName
- '''
- 'Set Rs = Cn.Execute(Str)
- Rs.Open Str, Cn, adOpenKeyset, adLockOptimistic
- Set SheetSqlRs = Rs
- End Function
复制代码
|
|