Hi,
I am trying to do a count of records in a report if there are no records I do not want to run the report.
StudentPin = 0050000
Me.ELFromPIN = D0050000
Me.ELToPin = D0050000
The student pin does not have a prefix of D however on the form they do to the users hence Me.ELFromPIN = D0050000
Me.ELToPin = D0050000 both being prefixed with D this is why I can't get my Dcount to work properly.
DCount("StudentPin", "tblL4DEnrolment", "StudentPin between " & Right(Me.ELFromPIN,6)& " And " & Right(Me.ELToPin,6))
Thanks Rachel.
I am trying to do a count of records in a report if there are no records I do not want to run the report.
StudentPin = 0050000
Me.ELFromPIN = D0050000
Me.ELToPin = D0050000
The student pin does not have a prefix of D however on the form they do to the users hence Me.ELFromPIN = D0050000
Me.ELToPin = D0050000 both being prefixed with D this is why I can't get my Dcount to work properly.
DCount("StudentPin", "tblL4DEnrolment", "StudentPin between " & Right(Me.ELFromPIN,6)& " And " & Right(Me.ELToPin,6))
Thanks Rachel.