benniesanders
Programmer
Hello!
I have a form that has three drop downs (combos):
Start Time
End Time
Task
On_click it posts the info to a table
It's being called from another form and picks up two fields that also get posted:
Job ID
Operator
I would like to be able to validate whether the following combination exists before it's posted to the table:
Job ID
Operator
Start Time
End Time
Task
I tried creating a new recordset to check it with before it posts with a "select" statement of the five above (select * from tblTimeSheet where JobID='"&strJob&"', etc. and doing an "If not oRsDup.eof then" and a msgbox "Duplicate Record" but it's not working. Any ideas of another way to check to make sure the whole record doesn't already exist? Thanks in advance.
Bennie
I have a form that has three drop downs (combos):
Start Time
End Time
Task
On_click it posts the info to a table
It's being called from another form and picks up two fields that also get posted:
Job ID
Operator
I would like to be able to validate whether the following combination exists before it's posted to the table:
Job ID
Operator
Start Time
End Time
Task
I tried creating a new recordset to check it with before it posts with a "select" statement of the five above (select * from tblTimeSheet where JobID='"&strJob&"', etc. and doing an "If not oRsDup.eof then" and a msgbox "Duplicate Record" but it's not working. Any ideas of another way to check to make sure the whole record doesn't already exist? Thanks in advance.
Bennie