Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub Report_Open(Cancel As Integer)
If ((Not rs.BOF) And (Not rs.EOF)) Then
Me.RecordSource = rs.rstHUTF
Else
Cancel = True
End If
End Sub
Run time error '424'
Object Required
Public rstHUTF As DAO.Recordset
Private Sub cmbULD_ID_AfterUpdate()
Dim dbsCurrent As Database
'Dim rstHUTF As DAO.Recordset === Globally Set
GULD_ID = Mid(cmbULD_ID.Value, 4, 5)
GULD_Carrier = Mid(Me.cmbULD_ID.Value, 9, 2)
GULD_Full_ID = cmbULD_ID.Value
Set dbsCurrent = CurrentDb
Set rstHUTF = dbsCurrent.OpenRecordset( _
"SELECT STAMP, OPCOO, AREA, FLOW, USTATE, UCAT, WEIGHT, SHC, ULDID, INFLTID, OUTFLTID, DEST " _
& "FROM HIS_HUTF " _
& "WHERE ULDID like '" & GULD_Full_ID & "' " _
& "ORDER BY STAMP DESC, ULDID DESC", dbOpenDynaset)
With rstHUTF
If .RecordCount = 0 Then
MsgBox "No Records"
Else
HUFT_ULD_Trace_Details.Visible = True
.MoveLast
.MoveFirst
Set Forms!HUFT_ULD_TRACE!HUFT_ULD_Trace_Details.Form.Recordset = rstHUTF
End If
End With
End Sub