Private strBWCClaimNumber As String
Private strMCONumber As String
Private strNoteCreateDate As String
Private strNoteTitle As String
Private strAuthorUserid As String
Private strAuthorLastName As String
Private strAuthorFirstName As String
Private strNoteID As String
Private strNotePrimary As String
Private strNoteContinuation As String
Public Type NotesExport
BWCClaimNumber As String * 10 'BWCClaimNum
MCONumber As String * 5 '10005
NoteCreateDate As String * 10 'mm/dd/yyyy format
NoteTitle As String * 40 'Subject or Category of Note
AuthorUserid As String * 30 'Note Creator Userid
AuthorLastName As String * 30 'Last Name from refUserInfo
AuthorFirstName As String * 20 'First Name from refUserInfo
NoteID As String * 50 '10005 + pkNote
NotePrimary As String * 4012 'Primary text of note
NoteContinuation As String * 4012 'Continuation text of note
End Type
Private NR As NotesExport
Public Sub ImportNotes()
Dim iFile As Integer
Dim L As Long
iFile = FreeFile()
Open frmMain.txtImport.Text & frmMain.lvImport.SelectedItem.SubItems(1) For Random As #iFile Len = Len(NR)
For L = 1 To Int(LOF(iFile) / Len(NR))
Get #iFile, L, NR
strBWCClaimNumber = NR.BWCClaimNumber
strMCONumber = NR.MCONumber
strNoteCreateDate = NR.NoteCreateDate
strNoteTitle = NR.NoteTitle
strAuthorUserid = NR.AuthorUserid
strAuthorLastName = NR.AuthorLastName
strAuthorFirstName = NR.AuthorFirstName
strNoteID = NR.NoteID
strNotePrimary = NR.NotePrimary
strNoteContinuation = NR.NoteContinuation
DoEvents
Next
Close #iFile
End Sub