Hello,
I have a DB I made in Microsoft SQL server, and I connected it to access, and now I'm making the interface for it.
I created a Delete query. I want to put a button in my form that runs this query BUT it's not working! I successfuly done this with selection queries. but when I get the window to chose the qry (when I add new button) the delete query isn't on the list. I clicked on "pass through" icon and chose the DB for this query, then I'm able to select it in the list and add to form, but it gives me errors like "incorrect syntex near * and near dbo_tblx " then I see that the SQL code is changed from this
to this
any advice on how to make that query run from my form??
I have a DB I made in Microsoft SQL server, and I connected it to access, and now I'm making the interface for it.
I created a Delete query. I want to put a button in my form that runs this query BUT it's not working! I successfuly done this with selection queries. but when I get the window to chose the qry (when I add new button) the delete query isn't on the list. I clicked on "pass through" icon and chose the DB for this query, then I'm able to select it in the list and add to form, but it gives me errors like "incorrect syntex near * and near dbo_tblx " then I see that the SQL code is changed from this
Code:
DELETE FROM dbo_tblx
WHERE (((dbo_tblx.x)=[Enter number:]));
to this
Code:
DELETE *
FROM dbo_tblx
WHERE (((dbo_tblx.x)=[Enter number:]));