I have a DCount function counts the value of receipts which may have the same number, but it does not work. It does not bring the number counted. So for instance if I am entering a new receipt, and i ask how many it found it brings a number > 0 which is wrong. So in my VBA code I ask if the number is greater than zero then do something else do something else. But since the value it passes is always incorrect the algorithm does not work.
If DCount("[Guía_de_Recepción]", "Recepcionesausensi", "[Guía_de_Recepción] = " & [Guía_de_Recepción] & " ") > 0 Then
The thing is, this same code works in another form perfect. So I do not know what is the issue.
Thank you so much