Hi all, I am currently using Access 2013 DB to open up a specific record in TRIM - HP Records Manager which works fine. I am now trying to find the container number that this record/Document comes from as I will at times need to update the container number for this record/document to a new container number. Below is the code that works to actually open an instance of TRIM and return the record number selected from the database. I have been looking for the SDK guide but have only found a couple of pages that are not much help at all. Any help would be greatly appreciated.
Cheers Mick
Private Sub Command63_Click()
Dim strTRIMRef As String
Dim dbTRIM As TRIMSDK.Database
Dim oSearch As TRIMSDK.RecordSearch
Dim oRecords As TRIMSDK.Records, hWnd As Long
Dim oRecord As TRIMSDK.Record
Dim oRecordType As TRIMSDK.RecordType
Set dbTRIM = New TRIMSDK.Database
If dbTRIM.IsConnected Then
dbTRIM.Disconnect
End If
strTRIMRef = Me.[Agenda Report] ‘This is the record number to lookup ie D15/275151’
Set dbTRIM = New TRIMSDK.Database
dbTRIM.Connect
If dbTRIM.IsConnected Then
Set oSearch = dbTRIM.NewRecordSearch
Call oSearch.AddTitleWordClause(strTRIMRef)
Set oRecords = oSearch.GetRecords
Call oRecords.DisplayUI(hWnd)
End If
End Sub