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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top