S
Shael
I have a form with a drop down list with values for Salesman. Whenever I
select a different Salesman from the drop down list, I retrieve the remaining
fields from the corresponding record in a table for that particular salesman
and populate the remainder of the form.
A few of the form fields are editable. I have a command button beside an
editable field. Behind the On Click event of the command button I have coded
an SQL Update statement to update the record.
The problem is that when I click the command button, the table update
occurs, but the form redisplays the fields from the first record in the
table. I would like the form to update the table based on the contents of the
editable field and display the same (updated) record in the form.
On the On Click event for the command button I have included a Me.Requery
command.
How can I ensure that once this button is pressed, the form will not revert
to the first record in the table, but stay on the current, updated record?
Thanks.
select a different Salesman from the drop down list, I retrieve the remaining
fields from the corresponding record in a table for that particular salesman
and populate the remainder of the form.
A few of the form fields are editable. I have a command button beside an
editable field. Behind the On Click event of the command button I have coded
an SQL Update statement to update the record.
The problem is that when I click the command button, the table update
occurs, but the form redisplays the fields from the first record in the
table. I would like the form to update the table based on the contents of the
editable field and display the same (updated) record in the form.
On the On Click event for the command button I have included a Me.Requery
command.
How can I ensure that once this button is pressed, the form will not revert
to the first record in the table, but stay on the current, updated record?
Thanks.