Dreamweaver
Well-known member
- Local time
- Today, 16:02
- Joined
- Nov 28, 2005
- Messages
- 2,466
Can the accda be compacted ??
I was watching your Video Again going over it again And think It's sinking in from what I see in the system table you spec a folder where the accda goes and noticed the same with the video so If I can get everything in that folder by installing it of unzipping it to that location everything should work.
Public Function DDLookUp(StrField As String, StrTable As String) As Variant
'=================================================================
'Description: Replacement for DLookup
'Called By: As Required
'Calling: None
'Parameters: StrField The Field, StrTable The Table
'Returns: Variant
'Author: Michael Javes, Database Dreams
'Editor(s) :
'Date Created: 21 April 2020
'Rev. History:
'Requirements: None
'=================================================================
Dim R As DAO.Recordset
Dim Str As String
On Error GoTo HandleErr
Set R = CodeDb.OpenRecordset("SELECT * FROM " & StrTable, dbOpenSnapshot)
DDLookUp = R(StrField)
R.Close
Set R = Nothing
HandleExit:
Exit Function
HandleErr:
Select Case Err.Number
Case Else
MsgBox Err.Number & vbCrLf & Err.Description
Resume HandleExit
Resume
End Select
End Function
Public Function DDXLookUp(StrField As String, StrTable As String, DDWhere As String) As Variant
'=================================================================
'Description: Replacement for DLookup
'Called By: As Required
'Calling: None
'Parameters: StrField The Field, StrTable The Table DDWhere A where startment if included
'Returns: Variant
'Author: Michael Javes, Database Dreams
'Editor(s) :
'Date Created: 21 April 2020
'Rev. History:
'Requirements: None
'=================================================================
Dim R As DAO.Recordset
Dim Str As String
On Error GoTo HandleErr
Set R = CodeDb.OpenRecordset("SELECT * FROM " & StrTable & " WHERE " & DDWhere, dbOpenSnapshot)
DDXLookUp = R(StrField)
R.Close
Set R = Nothing
HandleExit:
Exit Function
HandleErr:
Select Case Err.Number
Case Else
MsgBox Err.Number & vbCrLf & Err.Description
Resume HandleExit
Resume
End Select
End Function
tackle the treeview
CodeDb.Properties("AppIcon").Value = DDLookUp("Location", "tblPreferences") & "\DD Icon.bmp"
Application.RefreshTitleBar