B
Bre-x
How can I modify this function so that it will show what the record is?
Function scan_sku() As String
Dim rs As DAO.Recordset
Dim strSQL
strSQL = "SELECT BKAR_INVL_PCODE FROM BKARINVL"
Set rs = CurrentDb.OpenRecordset(strSQL, dbOpenSnapshot)
rs.MoveFirst
Do Until rs.EOF
MsgBox rs.BKAR_INVL_PCODE
rs.MoveNext
Loop
rs.Close
Set rs = Nothing
End Function
Function scan_sku() As String
Dim rs As DAO.Recordset
Dim strSQL
strSQL = "SELECT BKAR_INVL_PCODE FROM BKARINVL"
Set rs = CurrentDb.OpenRecordset(strSQL, dbOpenSnapshot)
rs.MoveFirst
Do Until rs.EOF
MsgBox rs.BKAR_INVL_PCODE
rs.MoveNext
Loop
rs.Close
Set rs = Nothing
End Function