Newbie here! I have been programming in VBA for quite some time, and have recently made the jump to VB. I am trying to pass a form name to a subroutine in a module. The subroutine analyzes records to meet various criteria. Because it is done so often, I make it a generic subroutine. Easy to do in VBA, but it does not work the same in VB.
The subroutine is simply to move to the next record of that form's datacontrol. However, each record has to be looked at to meet some very specific industry criteria.
My subroutine says
when calling it, i am using
but it is giving me a type mismatch. Any suggestions?
The subroutine is simply to move to the next record of that form's datacontrol. However, each record has to be looked at to meet some very specific industry criteria.
My subroutine says
Code:
private sub AnalyzeRecord(frmName as form)
when calling it, i am using
Code:
AnalyzeRecord(me.name)
but it is giving me a type mismatch. Any suggestions?