SQLScholar
Programmer
Hey all,
I have a program which is querying an access DB, using access SQL.
I have the query working nearly perfectly, apart from this problem.
If there is no data, it still produces the automated email. The reason for this, is that it puts in headers and stuff like this during the code.
So is there any way of saying
IF (select * from mytable='' then select * from mytable, else do the rest of the query)
So basically if the data in my table is empty then query just that (returns a blank, so no email) if its not then carry on.
Thanks all
Dan
----------------------------------------
There are 2 types of computer, the prototype and the obsolete!!
I have a program which is querying an access DB, using access SQL.
I have the query working nearly perfectly, apart from this problem.
If there is no data, it still produces the automated email. The reason for this, is that it puts in headers and stuff like this during the code.
So is there any way of saying
IF (select * from mytable='' then select * from mytable, else do the rest of the query)
So basically if the data in my table is empty then query just that (returns a blank, so no email) if its not then carry on.
Thanks all
Dan
----------------------------------------
There are 2 types of computer, the prototype and the obsolete!!