Hi,
I'm using ADO (via Microsoft.Jet.OLEDB.4.0) on an access database and having some issues updating using the like command.
I display a set of results in a grid based on users filters. These can filter on codes and so I have sql statements that contain the following:
... where code like 'X%'
... where code like 'X%X'
... where code like '%X'
These all work fine and produce the desired results.
I then use these filters for creating update statements based on what is shown in the grid.
Updates work fine in the first two cases:
... where code like 'X%'
... where code like 'X%X'
However when I try to do an update query using:
... where code like '%X'
I get the following error:
3001 : Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
Does anyone have any ideas how I can fix or work around this?
Cheers
Marc
I'm using ADO (via Microsoft.Jet.OLEDB.4.0) on an access database and having some issues updating using the like command.
I display a set of results in a grid based on users filters. These can filter on codes and so I have sql statements that contain the following:
... where code like 'X%'
... where code like 'X%X'
... where code like '%X'
These all work fine and produce the desired results.
I then use these filters for creating update statements based on what is shown in the grid.
Updates work fine in the first two cases:
... where code like 'X%'
... where code like 'X%X'
However when I try to do an update query using:
... where code like '%X'
I get the following error:
3001 : Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
Does anyone have any ideas how I can fix or work around this?
Cheers
Marc