Non è stato possibile risolverlo a monte con una sola query, si incorreva in errori logici cmq la soluzione era semplicissima e lo spunto me l'ha dato Killar99....
Ho semplicemente messo mano con degli IF al codice che genera il RecordSet facendo generare ben 4 query a seconda del Caso:
a) 2 Campi Pieni
b) 2 Campi Vuoti
c) 1° Pieno e 2° Vuoto
d) 1° Vuoto e 2° Pieno
codice:
If Risultati__MMColParam <> "0" AND Risultati__MMColParam2 <> "0" Then
Risultati.Source = "SELECT * FROM Contenuti WHERE Nome = '" + Replace(Risultati__MMColParam, "'", "''") + "' AND SottoCat = '" + Replace(Risultati__MMColParam2, "'", "''") + "' ORDER BY Nome ASC"
End If
If Risultati__MMColParam <> "0" AND Risultati__MMColParam2 = "0" Then
Risultati.Source = "SELECT * FROM Contenuti WHERE Nome = '" + Replace(Risultati__MMColParam, "'", "''") + "' ORDER BY Nome ASC"
End If
If Risultati__MMColParam = "0" AND Risultati__MMColParam2 <> "0" Then
Risultati.Source = "SELECT * FROM Contenuti WHERE SottoCat = '" + Replace(Risultati__MMColParam2, "'", "''") + "' ORDER BY Nome ASC"
End If
If Risultati__MMColParam = "0" AND Risultati__MMColParam2 = "0" Then
Risultati.Source = "SELECT * FROM Contenuti ORDER BY Nome ASC"
End If
Grazie a Tutti per l'aiuto!!