G
Guest
I have added a command button to a form with the following:-
Dim str As String
str = "UPDATE Testtable SET Testtable.CentreId = 1, Testtable.TypeId = 4
WHERE ((Left([Testtable]![CTEXT],3)="PAY"));"
DoCmd.RunSQL (str)
When I click the button, I am getting a prompt for a paramenter. If I run
the query I do not get the prompt. Is there a simple way to avoid getting
the prompt from the button
Dim str As String
str = "UPDATE Testtable SET Testtable.CentreId = 1, Testtable.TypeId = 4
WHERE ((Left([Testtable]![CTEXT],3)="PAY"));"
DoCmd.RunSQL (str)
When I click the button, I am getting a prompt for a paramenter. If I run
the query I do not get the prompt. Is there a simple way to avoid getting
the prompt from the button