M
Magius96
I feel stupid for not being able to figure this out on my own, but here we go:
I have a section of code that I need to bypass if a certain table contains
null values because the user has to manually enter those values before they
can proceed. I have an SQL string that helps me find the records containing
null values, that string is:
SELECT PLD.DEBTOR_FILENO, PLD.ED_PROGRAM_TYPE, PLD.ED_BAL_WHEN_SET,
PLD.DEBTOR_ED_PAYOFF_BAL FROM PLD WHERE (((PLD.ED_PROGRAM_TYPE) Is Null)) OR
(((PLD.ED_BAL_WHEN_SET) Is Null)) OR (((PLD.DEBTOR_ED_PAYOFF_BAL) Is Null));
How can I write a VBA IF statement that will exit the subroutine if there
are any records returned from that SQL statement?
Like I said, it's a simple thing, but it's just eluding me for some reason.
I have a section of code that I need to bypass if a certain table contains
null values because the user has to manually enter those values before they
can proceed. I have an SQL string that helps me find the records containing
null values, that string is:
SELECT PLD.DEBTOR_FILENO, PLD.ED_PROGRAM_TYPE, PLD.ED_BAL_WHEN_SET,
PLD.DEBTOR_ED_PAYOFF_BAL FROM PLD WHERE (((PLD.ED_PROGRAM_TYPE) Is Null)) OR
(((PLD.ED_BAL_WHEN_SET) Is Null)) OR (((PLD.DEBTOR_ED_PAYOFF_BAL) Is Null));
How can I write a VBA IF statement that will exit the subroutine if there
are any records returned from that SQL statement?
Like I said, it's a simple thing, but it's just eluding me for some reason.