Testing a boolean function not working??

  • Thread starter Thread starter graeme34 via AccessMonster.com
  • Start date Start date
G

graeme34 via AccessMonster.com

Hi
Could somebody please tell me what is wrong with the following code??

CheckInvoicePrinted lngOrderNum

If CheckInvoicePrinted = False Then Exit Sub

Where CheckInvoicePrinted is a Function that accepts lngOrderNum byRef (left
as default)

The function works fine, yet when I try to test with the If statement it is
failing.

Could someone point me in the right direction??
 
Try putting it all together. You're not assigning the return value of the
function call to anything in the first line and in the second, you're
calling the function without a parameter.

If CheckInvoicePrinted(lngOrderNum) = False Then Exit Sub
 
Back
Top