A
Andy
Hi there, I have the existing code already linked to a click button event to
trigger an import dialog box and import process.
What I would like to do is insert some code around this to open 'Form A' as
the first step and to close the form as the last step within the code. The
imports are often half a million records and the form is a 'Database busy'
form to make sure the user understands to just be patient!
---------------------------------------------------------------------------------------------
Private Sub Command141_Click()
Dim strFilter As String
Dim strInputFileName As String
strFilter = ahtAddFilterItem(strFilter, _
"txt Files (*.txt)")
strInputFileName = ahtCommonFileOpenSave( _
Filter:=strFilter, OpenFile:=True, _
DialogTitle:="Please select the file to import...", _
Flags:=ahtOFN_HIDEREADONLY)
If Len(strInputFileName) > 0 Then
DoCmd.TransferText acImportFixed, "Outpatient CMDSOP
Import/Export", "CMDSOP", strInputFileName, False, ""
X = MsgBox("The Outpatient CDS file has now been imported into the
database", 64, "CDS and PbR Database")
End If
End Sub
trigger an import dialog box and import process.
What I would like to do is insert some code around this to open 'Form A' as
the first step and to close the form as the last step within the code. The
imports are often half a million records and the form is a 'Database busy'
form to make sure the user understands to just be patient!
---------------------------------------------------------------------------------------------
Private Sub Command141_Click()
Dim strFilter As String
Dim strInputFileName As String
strFilter = ahtAddFilterItem(strFilter, _
"txt Files (*.txt)")
strInputFileName = ahtCommonFileOpenSave( _
Filter:=strFilter, OpenFile:=True, _
DialogTitle:="Please select the file to import...", _
Flags:=ahtOFN_HIDEREADONLY)
If Len(strInputFileName) > 0 Then
DoCmd.TransferText acImportFixed, "Outpatient CMDSOP
Import/Export", "CMDSOP", strInputFileName, False, ""
X = MsgBox("The Outpatient CDS file has now been imported into the
database", 64, "CDS and PbR Database")
End If
End Sub