Dim rst As DAO.Recordset
JobID = GetID()
Set rst = CurrentDb.OpenRecordset ("SELECT * FROM JobsDoors WHERE [ID] = " & JobId)
JobNum = rst!JobNumTN
JobSuf = rst!JobSuffix
JobBat = rst!BatchNum
rst.Close
Set rst = Nothing
or
Dim rst As DAO.Recordset
Set rst = CurrentDb.OpenRecordset ("SELECT * FROM JobsDoors WHERE [ID] = " & GetID())
JobNum = rst!JobNumTN
JobSuf = rst!JobSuffix
JobBat = rst!BatchNum
rst.Close
Set rst = Nothing