Here is the SQL for the update query:
PARAMETERS [Forms]![Process change form]![Line] Text ( 255 ),
[Forms]![Process change form]![Parameter] Text ( 255 ), [Form]![Process
change form]![To] Text ( 255 );
UPDATE [Set-up sheets] SET [Set-up sheets].Setting = Forms![Process change
form]!To
WHERE ((([Set-up sheets].Line)=[Forms]![Process change form]![Line]) AND
(([Set-up sheets].Parameter)=[Forms]![Process change form]![Parameter]));
And this is how I am invoking with the buttons on click event code:
Private Sub OK_Click()
Me.Visible = False
DoCmd.OpenQuery "setup sheet update query", acViewNormal, acEdit
DoCmd.Close acForm, "Process change form"
Graham Mandeno said:
Can you please post the SQL of your update query, and also say how you
are
invoking it from your button's Click event code.
--
Graham Mandeno [Access MVP]
Auckland, New Zealand
nevinx said:
I have a form set up to run an update query when I click the okay
button.
Everything works like it should except I still get a box popping up
asking
my
for the update value that should have already been given by the form.
Any
ideas on what I am doing wrong?