jgoodman00
Programmer
- Jan 23, 2001
- 1,510
Ok, I am attempting to use this, to parse a criteria string:
strWhere = strWhere & strJoinType & (BuildCriteria(strField, strFieldType, strExpression))
This works fine, until it encounters a varchar datatype (ADO.DataTypeEnum = adVarChar or 200). At this point it errors, stating 'Invalid Data Type'.
An example of the contents of the BuildCriteria string are as follows:
BuildCriteria("NewFenceType","200","GP24"
I have also tried assigning strFieldType as an Integer, but it makes no difference.
If I use the query designer grid I get no error.
James Goodman MCP
strWhere = strWhere & strJoinType & (BuildCriteria(strField, strFieldType, strExpression))
This works fine, until it encounters a varchar datatype (ADO.DataTypeEnum = adVarChar or 200). At this point it errors, stating 'Invalid Data Type'.
An example of the contents of the BuildCriteria string are as follows:
BuildCriteria("NewFenceType","200","GP24"
I have also tried assigning strFieldType as an Integer, but it makes no difference.
If I use the query designer grid I get no error.
James Goodman MCP