Private Sub Form_Load()
Dim strPathName As String, strReportName As String, strSqlPath As String
Dim rsPath As New ADODB.Recordset
strSqlPath = "select mean from Parameter_tab where parameter_name='tabOrderFormReport'"
rsPath.Open strSqlPath, strPubConnect, adOpenKeyset, adLockReadOnly
If Not rsPath.EOF Then
strPathName = rsPath.Fields(0).Value
Else
MsgBox "§ä¤£¨ì³øªí¸ô®|¡A½Ð»P¸ê°TÁp¨t¡I", vbCritical, "´£¿ô±z"
Exit Sub
End If
strReportName = "custom_tabMaterialGoinReport.rpt"