91
ห้อง MS Access / > สอบถามการใช้ combo Filter มากกว่า1รายการ หรือ การใส่ filter sort แต่ละ column
« เมื่อ: 08 มี.ค. 61 , 18:28:20 »
ผมเคยทำคลิปตอบคำถามแนวๆนี้ ไม่รู้ว่าพอช่วยเป็นแนวทางได้หรือไม่นะครับ ลองดูแล้วกัน
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
DoCmd.RunCommand acCmdSelectRecord
If (MacroError = 0) Then
DoCmd.RunCommand acCmdCopy
End If
If (MacroError = 0) Then
DoCmd.RunCommand acCmdRecordsGoToNew
End If
If (MacroError = 0) Then
DoCmd.RunCommand acCmdSelectRecord
End If
If (MacroError = 0) Then
DoCmd.RunCommand acCmdPaste
End If
If (MacroError <> 0) Then
Beep
MsgBox MacroError.Description, vbOKOnly, ""
DoCmd.GoToRecord , , acLast
End If
DoCmd.GoToRecord , , acLast
DoCmd.GoToControl "CNC"
Dim strFile As String, nFiles As String
strFile = Dir("C:\Data\Files\", vbNormal)
Do While strFile <> ""
nFiles = nFiles & ";" & strFile
strFile = Dir()
Loop
Me.Combo1.RowSource = Mid(nFiles, 2)
ประมาณนี้ครับ ปรับใช้ดูSub ListLibraryName()
Dim chkref As Reference
For Each chkref In Application.References
MsgBox "Reference: " & chkref.name & Chr(13) & chkref.FullPath
Next
End Function