Update To Record Not Working

lozzablake

Well-known Member
Joined
Dec 15, 2005
Messages
818
I have, what I thought, was a very simple table and a form bound to this. When a user opens the form it displays all the records in the table. Only one of the fields can be edited (records cannot be added or deleted). This field is a yes/no field and the user checks those records that need to be deleted.

When finished the user clicks a command button which then does some validation before proceeding to the rest of the code. In testing, I have noticed that the last check box to be changed does not seem to get updated in the underlying table. So if there are three records and you check all the records, the underlying table only shows updates to two of the records and not to the last one to be checked. I thought that as soon as focus was switched to the command button the underlying would record would be updated.

Am I missing something?

thanks
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

SydneyGeek

MrExcel MVP
Joined
Aug 5, 2003
Messages
12,251
The change isn't saved to the table until you either save the record via the menus, or move to another record.

Denis
 
Upvote 0

Forum statistics

Threads
1,191,166
Messages
5,985,052
Members
439,936
Latest member
BSR

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top