Trying to set the following filter on an ADODB recordset gives an error message:
"Run-Time error '3001' Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another"
The following does work:
What is wrong with my first string?
"Run-Time error '3001' Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another"
Code:
mselectie="([mNaam] ='Smith, John' OR [mNaam] ='Brown, Joe') AND [gStatus_i] <18"
rsStud.Filter = mSelectie.Value
The following does work:
Code:
mselectie=" [mNaam] ='Smith, John' OR ([mNaam] ='Brown, Joe') AND [gStatus_i] <18)"
rsStud.Filter = mSelectie.Value
What is wrong with my first string?