Hi,
I am probably real dumb with these codes. I am working on a small project in which one of the most important things to be done is to delete fields from a table. So what i did was to write a SQL query and connect to a form's command button. But this has to only delete fields where the table's primary key matches with what the user enters in a text field on the form. The SQL code i used is
DELETE field1,field2,f ield3,.....
FROM <TableName>
WHERE field7=<FormNam e>.<TextboxName >
But there seems to be a problem with the code. Could someone help me with this
Thanks
I am probably real dumb with these codes. I am working on a small project in which one of the most important things to be done is to delete fields from a table. So what i did was to write a SQL query and connect to a form's command button. But this has to only delete fields where the table's primary key matches with what the user enters in a text field on the form. The SQL code i used is
DELETE field1,field2,f ield3,.....
FROM <TableName>
WHERE field7=<FormNam e>.<TextboxName >
But there seems to be a problem with the code. Could someone help me with this
Thanks
Comment