Avoid SQL injection in MS Access

M

Mawan

I write this on Borland Delphi:

command = 'select * from mytable where name = "' + Edit1.Text + '"';

Users can write SQL injection commands in Edit1.Text.
How to avoid this?
 
M

Mike

Write a function to remove the unwanted commands and symbols.

Especially the OR, DELETE & UPDATE.
 
Top