The problem is with the line
rec_count = .recordset.RecordCount
There should be an object reference in front of
.RecordSet
... possibly it should read
rec_count = db_employee.RecordSet.RecordCount
You will get a similar problem with
If .recordset.RecordCount <> 0 Then
Also be aware that your code is vulnerable to
SQL Injection[
^]
You may want to also consider using VB.NET instead - the
express[
^] version is free