M
mission2java_78
Guest
I posted this a while back and its still getting me ....
I have a table of tasks with several fields. In this table i have two particular fields : TaskSource, and InsertBeforeTask.
I want to sql all the records BUT I dont want any record with
TaskSource="N\A"
InsertBeforeTask=0
Meaning If I had a task where one of these conditions was true but the other was false I'd still want it. But if these conditions are true for both I dont want it...
Ive tried combinations of ands and ors with no luck.
Can anyone give me a hand:
"SELECT * FROM tblTasks WHERE RecordID= " & recordID & " AND TaskOrder >= " & taskOrder _
& " _______________ ORDER BY TaskOrder DESC"
I am stuck _____fill in the blanks_____________ at that portion. I tried AND but it didnt work.
Anyone with ideas?
Jon
I have a table of tasks with several fields. In this table i have two particular fields : TaskSource, and InsertBeforeTask.
I want to sql all the records BUT I dont want any record with
TaskSource="N\A"
InsertBeforeTask=0
Meaning If I had a task where one of these conditions was true but the other was false I'd still want it. But if these conditions are true for both I dont want it...
Ive tried combinations of ands and ors with no luck.
Can anyone give me a hand:
"SELECT * FROM tblTasks WHERE RecordID= " & recordID & " AND TaskOrder >= " & taskOrder _
& " _______________ ORDER BY TaskOrder DESC"
I am stuck _____fill in the blanks_____________ at that portion. I tried AND but it didnt work.
Anyone with ideas?
Jon