Hi,
I am using Radgrid to display/retrieve/update data in an Access database.
Although I am able to delete and addd records, I cannot update.
There are no errors being displayed....I update the field(s) and press OK to accept the changes...but the new changes are not saved..the listing shows again the previous record/field...
As I said, no errors are shown after pressing ok.
Here is the code below (not all, but I assume is where the problem might be?)
II have not changed or added anything manual to the code.
Thank you in advance
<
asp:AccessDataSource
ID
=
"AccessDataSource1"
runat
=
"server"
DataFile
=
"~/App_Data/Registro_Planchas_be.mdb"
DeleteCommand
=
"DELETE FROM [Tabla Registro Planchas] WHERE [Nº] = ?"
InsertCommand
=
"INSERT INTO [Tabla Registro Planchas] ([FECHA], [REFERENCIA], [PROVEEDOR], [REFERENCIA PEDIDO], [MAQUINA], [MARCA], [MEDIDA], [TROQUEL], [DISEÑO]) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)"
SelectCommand
=
"SELECT * FROM [Tabla Registro Planchas]"
UpdateCommand
=
"UPDATE [Tabla Registro Planchas] SET [FECHA] = ?, [REFERENCIA] = ?, [PROVEEDOR] = ?, [REFERENCIA PEDIDO] = ?, [MAQUINA] = ?, [MARCA] = ?, [MEDIDA] = ?, [TROQUEL] = ?, [DISEÑO] = ? WHERE [Nº] = ?"
>
<
DeleteParameters
>
<
asp:Parameter
Name
=
"Nº"
Type
=
"Int32"
/>
</
DeleteParameters
>
<
UpdateParameters
>
<
asp:Parameter
Name
=
"FECHA"
Type
=
"DateTime"
/>
<
asp:Parameter
Name
=
"REFERENCIA"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"PROVEEDOR"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"REFERENCIA_PEDIDO"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"MAQUINA"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"MARCA"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"MEDIDA"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"TROQUEL"
Type
=
"String"
/>
<
asp:Parameter
Name
=
"DISEÑO"
Type
=
"String"
/>
</
UpdateParameters
> <
br
> </
UpdateParameters
>