I have a page that submits to an access database, in a description (text) field people can type in the information to be stored in the des field of the database (the html is below)
<td> <font face="Verdana" size="2"> Description:</font></td>
<td>
<input type="text" name="des"> value="<%=des %>">
however if someone adds something formatted as below
Open Form 'Master Items'.
Enter new Oracle Item Code and description
etc etc
VALUED for all except CAB which is ABC EXPENSED).
SAVE.
End
it tries to process the Open Form statement in the text field and throws an error like this
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression ''Open Form 'Master Items'.
How can I stop this without setting rules on my users to what they can add to the box, any ideas ? My ASP knowledge is fairly basic.
Regards
Ian
<td> <font face="Verdana" size="2"> Description:</font></td>
<td>
<input type="text" name="des"> value="<%=des %>">
however if someone adds something formatted as below
Open Form 'Master Items'.
Enter new Oracle Item Code and description
etc etc
VALUED for all except CAB which is ABC EXPENSED).
SAVE.
End
it tries to process the Open Form statement in the text field and throws an error like this
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression ''Open Form 'Master Items'.
How can I stop this without setting rules on my users to what they can add to the box, any ideas ? My ASP knowledge is fairly basic.
Regards
Ian