Hmmm, ok, well I guess I replied too hastily and without having my morning cup of coffee. <g>
Perhaps you need to change the way you use the oParameters collection or, instead have it be a Hashtable ... you'd be passing it a "key" (the parameter name) and "value" (the parameter value) anyway, so it would work the similarly to the way you have it now. Then your Framework.Data class can build the correct type of parameters from the hashtable.
So, to set the parameters, instead of doing this:
Dim loDataProvider As Framework.Data = New Framework.Data
loDataProvider.oParameters.Add(New OleDbParameter("@Username", lcUsername))
You'd do this instead:
Dim loDataProvider As Framework.Data = New Framework.Data
loDataProvider.oParameters.Add("@Username", lcUsername)
~~Bonnie
>>Haven't messed with it at all, but perhaps you may be able to use the IDataParameter interface for your paramaters.
>
>This cannot be used on an interface. This is the message I receive, a warning, if I do this line:
>
>
> loDataProvider.oParameters.Add(New IDbDataParameter("@AddUser", 4))
>