Hi All,
I've asked about this before, and people were very helpful, and I have
used the advise quite a bit, however I have run into a spot of
trouble...
I have a form that the users uses to change the salary of an employee.
This has ChangeDate on it. When the Change button is clicked, it should
count how many changes have the same or later date to that input. I went
about this like this:
Dim dupNum
dupNum = DCount("[EmpID]", "tblSalaryChanges", "[EmpID]="_
& Me.EmpID & " AND [ChangeDate]>=#" & Me.ChangeDate.Value_
& "#")
However, this seems to return the amount of changes in the table for
that emplyee! Can anyone tell me where the error in the code is?
TIA
Alec Christie
alec_e_christie(at)hotmail(dot)com
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!