W wchernock Registered User. Local time Today, 11:16 Joined Jun 18, 2007 Messages 28 Jun 20, 2007 #1 Is there a difference between DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70 DoCmd.Close acForm, CurrentForm, acSaveNo and DoCmd.Close acForm, CurrentForm, acSaveYes
Is there a difference between DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70 DoCmd.Close acForm, CurrentForm, acSaveNo and DoCmd.Close acForm, CurrentForm, acSaveYes
KeithG AWF VIP Local time Today, 08:16 Joined Mar 23, 2006 Messages 2,592 Jun 20, 2007 #2 I believe in the first expression you are saving changes to the record, in the second expression you are saving changes to the form.
I believe in the first expression you are saving changes to the record, in the second expression you are saving changes to the form.
rainman89 I cant find the any key.. Local time Today, 11:16 Joined Feb 12, 2007 Messages 3,015 Jun 20, 2007 #3 DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70 This is sloppy. boB larson mentioned to me that this should be avoided at all costs. i know its simple to use because its made by access, but i guess it can cause problems in the end.
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70 This is sloppy. boB larson mentioned to me that this should be avoided at all costs. i know its simple to use because its made by access, but i guess it can cause problems in the end.
W wchernock Registered User. Local time Today, 11:16 Joined Jun 18, 2007 Messages 28 Jun 20, 2007 #4 Thanks. I am using the second piece of code but wanted someone with experience to verify that I was not missing something.
Thanks. I am using the second piece of code but wanted someone with experience to verify that I was not missing something.
R Rich Guest Jun 20, 2007 #5 DoMenuItem is obsolete and has been for years. When the Access develpment team talk to each other it'll be removed from the Wizards
DoMenuItem is obsolete and has been for years. When the Access develpment team talk to each other it'll be removed from the Wizards
boblarson Smeghead Local time Today, 08:16 Joined Jan 12, 2001 Messages 32,059 Jun 20, 2007 #6 KeithG said: I believe in the first expression you are saving changes to the record, in the second expression you are saving changes to the form. Click to expand... Keith is correct, the second expression has to do with saving design changes to the form and has nothing to do with the records in the form.
KeithG said: I believe in the first expression you are saving changes to the record, in the second expression you are saving changes to the form. Click to expand... Keith is correct, the second expression has to do with saving design changes to the form and has nothing to do with the records in the form.