Deltaflyer
Programmer
SQL has never been my strong point, but i am pretty sure that this coding ( found at bottom of text ) is correct for use in Interdev.
The SQL statement works ok as long as i don't put the last line in, (ORDER BY DomainID).
I must be missing something obvious, so please call me a fool if you feel like it.
(Only as long as i deserve it though!!!)
SQL Statement
-------------
If (DomainID <> ""
Then
SQL = "SELECT * FROM tbl where DomainID LIKE '" & DomainID & "'"
ElseIf (FirstName <> ""
Then
strSQL = "SELECT * FROM Tbl_peo_People where FirstName LIKE '" & FirstName & "'"
End if
strSQL = strSQL & " ORDER BY DomainID"
[sig][/sig]
The SQL statement works ok as long as i don't put the last line in, (ORDER BY DomainID).
I must be missing something obvious, so please call me a fool if you feel like it.
(Only as long as i deserve it though!!!)
SQL Statement
-------------
If (DomainID <> ""
SQL = "SELECT * FROM tbl where DomainID LIKE '" & DomainID & "'"
ElseIf (FirstName <> ""
strSQL = "SELECT * FROM Tbl_peo_People where FirstName LIKE '" & FirstName & "'"
End if
strSQL = strSQL & " ORDER BY DomainID"
[sig][/sig]