"Error 3001: Arguments are of wrong type..." while writing to stream
My application is in VB6 and my database in Access 2000
I use the ADODC to connect to the dabase. What I want to do is a simple search in the recordset and navigate to the appropriate record if found. I use the following syntax:
adodc1.find "FOLDER=" & iFolder & " AND MAJOR=" & iMajor
where FOLDER and MAJOR are the fields i want to do the search and are both INTEGER NUMBERS. Also iFolder amd iMajor are INTEGER variables which get their values from two textboxes.
The error I get is
"Error 3001: Arguments are of wrong type..."
Te strange thing is that if I use only one of the variables the thing seems to be working fine.
Any ideas please?