Pertaining to VBA:
Does the following mean if a record does not exist:
strSQL = "Select * from tblRes where ID = '" & Forms!Pg!PID & "'"
rs.Open strSQL, conn, adOpenDynamic, adLockOptimistic
If rs.EOF Then
Does rs.EOF mean that the select result did not return anything?
When working with ADO recordsets like this one then yes
Will confirm there are no records, however it’s worth adding that if you are working with DAO recordsets instead then you would amend to