Jun 16, 2008 01:27 PM|AceCorban|LINK
I'm not familiar with the OleDbCommand object or its parameters, so I see two things that I'm not 100% clear on:
-Does setting the column length to 0 (as you show for your two date parameters) work in other code? I think DateTime is typically defaulted to 8.
-Does the Command.Parameters.Add() method return that parameter? And does it return it by reference? I ask because the string: command.Parameters.Add().Value = whatever may not work if the method doesn't return an actual reference to the parameter you
just added. In many of the examples I see online, people typically do this in two lines. They add the parameter, then set its value by accessing the parameters array by name.