<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Wed, 10 Jun 2026 06:39:11 +0000</lastBuildDate>
    <item>
      <title>(Visual Basic) Close Without Record Save - heislekw</title>
      <link>https://snipplr.com/view/52849/close-without-record-save</link>
      <description>&lt;p&gt;Performing a Close action on a form can cause you to lose edits without warning.&#13;
&#13;
The problem occurs if there is any reason why the record cannot be saved. e.g.: &#13;
    * a required field was left blank;&#13;
    * the record would create a duplicate in a unique index;&#13;
    * the form's Before Update event was canceled;&#13;
    * a Validation Rule was not met.&#13;
&#13;
Access simply discards your edits and closes the form without warning that the record was not saved. &#13;
&#13;
Develop the habit of explicitly saving whenever you do anything that requires the record to be saved, e.g. applying or removing a Filter or OrderBy property, changing a RecordSource, or moving to another record.&#13;
&#13;
You must explicitly save the record before executing a Close action. For example:&lt;/p&gt;</description>
      <pubDate>Sun, 01 May 2011 02:47:46 UTC</pubDate>
      <guid>https://snipplr.com/view/52849/close-without-record-save</guid>
    </item>
    <item>
      <title>(Visual Basic) Printing without saving current edits - heislekw</title>
      <link>https://snipplr.com/view/52848/printing-without-saving-current-edits</link>
      <description>&lt;p&gt;Changes to the current record are not saved just because you click a button to perform some other action. Novice Access users often forget to force a record save before executing an action such as OpenReport [or Close, etc.]&lt;/p&gt;</description>
      <pubDate>Sun, 01 May 2011 02:46:23 UTC</pubDate>
      <guid>https://snipplr.com/view/52848/printing-without-saving-current-edits</guid>
    </item>
    <item>
      <title>(Visual Basic) Subform records with no main form record - heislekw</title>
      <link>https://snipplr.com/view/52847/subform-records-with-no-main-form-record</link>
      <description>&lt;p&gt;You have a table with a primary key, and related table with a foreign key. You have created a relationship between these two tables, with referential integrity. Now you create a main form with a subform for these two tables. Some of the records you enter in the subform seem to disappear never to be seen again. Where have they gone?&#13;
&#13;
Referential integrity does not block Nulls in the foreign key. Normally Access fills in the foreign key in a subform to match the primary key in the main form. But if the main form is at a new record, Access merrily accepts the entry in the subform with a Null foreign key. These records never show up again in the subform, since they do not relate to any record in the main form.&#13;
&#13;
You must take specific action if you want to prevent this occurring.&#13;
Solutions:&#13;
&#13;
Do either (or both) of the following:&#13;
&#13;
    * Set the Required property of the Foreign key to True in Table Design.&#13;
    * Use the subform's BeforeInsert event procedure to cancel (or question) the insertion:&lt;/p&gt;</description>
      <pubDate>Sun, 01 May 2011 02:43:47 UTC</pubDate>
      <guid>https://snipplr.com/view/52847/subform-records-with-no-main-form-record</guid>
    </item>
    <item>
      <title>(Visual Basic) Detect if form is being edited - Option 1 - heislekw</title>
      <link>https://snipplr.com/view/50281/detect-if-form-is-being-edited--option-1</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 08 Mar 2011 09:42:00 UTC</pubDate>
      <guid>https://snipplr.com/view/50281/detect-if-form-is-being-edited--option-1</guid>
    </item>
    <item>
      <title>(Visual Basic) Use PageBreaks instead of tabs - heislekw</title>
      <link>https://snipplr.com/view/50280/use-pagebreaks-instead-of-tabs</link>
      <description>&lt;p&gt;On form, insert a Page Break after the first group of fields. This creates two "pages" in the form, which can be toggled using a command button on each.&lt;/p&gt;</description>
      <pubDate>Tue, 08 Mar 2011 09:34:47 UTC</pubDate>
      <guid>https://snipplr.com/view/50280/use-pagebreaks-instead-of-tabs</guid>
    </item>
    <item>
      <title>(Visual Basic) Detect if form is being edited - Option 2 (timer) - heislekw</title>
      <link>https://snipplr.com/view/50279/detect-if-form-is-being-edited--option-2-timer</link>
      <description>&lt;p&gt;Set TimerInterval to 1000&#13;
&#13;
Add a command button called cmdUndo, which will be enabled the moment the form is edited.&lt;/p&gt;</description>
      <pubDate>Tue, 08 Mar 2011 09:30:55 UTC</pubDate>
      <guid>https://snipplr.com/view/50279/detect-if-form-is-being-edited--option-2-timer</guid>
    </item>
    <item>
      <title>(Visual Basic) Make popup form close when user clicks outside of it - heislekw</title>
      <link>https://snipplr.com/view/48818/make-popup-form-close-when-user-clicks-outside-of-it</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 11 Feb 2011 09:43:22 UTC</pubDate>
      <guid>https://snipplr.com/view/48818/make-popup-form-close-when-user-clicks-outside-of-it</guid>
    </item>
    <item>
      <title>(Visual Basic) Check for duplicate record from many to many table - numeric - heislekw</title>
      <link>https://snipplr.com/view/47428/check-for-duplicate-record-from-many-to-many-table--numeric</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 18 Jan 2011 16:03:31 UTC</pubDate>
      <guid>https://snipplr.com/view/47428/check-for-duplicate-record-from-many-to-many-table--numeric</guid>
    </item>
    <item>
      <title>(Visual Basic) Move cursor to start of date field - heislekw</title>
      <link>https://snipplr.com/view/47425/move-cursor-to-start-of-date-field</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 18 Jan 2011 15:50:53 UTC</pubDate>
      <guid>https://snipplr.com/view/47425/move-cursor-to-start-of-date-field</guid>
    </item>
    <item>
      <title>(Visual Basic) Use arrow key to move through records in a continuous form - heislekw</title>
      <link>https://snipplr.com/view/46306/use-arrow-key-to-move-through-records-in-a-continuous-form</link>
      <description>&lt;p&gt;KeyPreview property must be set to Yes&lt;/p&gt;</description>
      <pubDate>Fri, 31 Dec 2010 03:54:48 UTC</pubDate>
      <guid>https://snipplr.com/view/46306/use-arrow-key-to-move-through-records-in-a-continuous-form</guid>
    </item>
    <item>
      <title>(Visual Basic) Save changes code, prevent you can't save record error - heislekw</title>
      <link>https://snipplr.com/view/37834/save-changes-code-prevent-you-cant-save-record-error</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sat, 24 Jul 2010 02:02:59 UTC</pubDate>
      <guid>https://snipplr.com/view/37834/save-changes-code-prevent-you-cant-save-record-error</guid>
    </item>
    <item>
      <title>(Visual Basic) Validation for a check box with a corresponding text field - heislekw</title>
      <link>https://snipplr.com/view/14163/validation-for-a-check-box-with-a-corresponding-text-field</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 19 Apr 2009 12:09:38 UTC</pubDate>
      <guid>https://snipplr.com/view/14163/validation-for-a-check-box-with-a-corresponding-text-field</guid>
    </item>
    <item>
      <title>(Visual Basic) Validation for a combo box with a corresponding text field - heislekw</title>
      <link>https://snipplr.com/view/14162/validation-for-a-combo-box-with-a-corresponding-text-field</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 19 Apr 2009 11:57:50 UTC</pubDate>
      <guid>https://snipplr.com/view/14162/validation-for-a-combo-box-with-a-corresponding-text-field</guid>
    </item>
    <item>
      <title>(Visual Basic) Use tag property to handle multiple controls - heislekw</title>
      <link>https://snipplr.com/view/14121/use-tag-property-to-handle-multiple-controls</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Fri, 17 Apr 2009 12:06:08 UTC</pubDate>
      <guid>https://snipplr.com/view/14121/use-tag-property-to-handle-multiple-controls</guid>
    </item>
    <item>
      <title>(Visual Basic) Change mouse cursor to hand - heislekw</title>
      <link>https://snipplr.com/view/9996/change-mouse-cursor-to-hand</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 23 Nov 2008 12:48:29 UTC</pubDate>
      <guid>https://snipplr.com/view/9996/change-mouse-cursor-to-hand</guid>
    </item>
    <item>
      <title>(Visual Basic) Change control's source based on value of other control(s) - heislekw</title>
      <link>https://snipplr.com/view/9991/change-controls-source-based-on-value-of-other-controls</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Sun, 23 Nov 2008 10:49:23 UTC</pubDate>
      <guid>https://snipplr.com/view/9991/change-controls-source-based-on-value-of-other-controls</guid>
    </item>
    <item>
      <title>(Visual Basic) Enable/Disable control based on value - heislekw</title>
      <link>https://snipplr.com/view/9990/enabledisable-control-based-on-value</link>
      <description>&lt;p&gt;Concise version&lt;/p&gt;</description>
      <pubDate>Sun, 23 Nov 2008 10:46:01 UTC</pubDate>
      <guid>https://snipplr.com/view/9990/enabledisable-control-based-on-value</guid>
    </item>
    <item>
      <title>(Visual Basic) Override Date Confirmation - heislekw</title>
      <link>https://snipplr.com/view/9989/override-date-confirmation</link>
      <description>&lt;p&gt;Used with calendar button&lt;/p&gt;</description>
      <pubDate>Sun, 23 Nov 2008 10:44:21 UTC</pubDate>
      <guid>https://snipplr.com/view/9989/override-date-confirmation</guid>
    </item>
    <item>
      <title>(Visual Basic) Check for duplicate value (numeric) - heislekw</title>
      <link>https://snipplr.com/view/9862/check-for-duplicate-value-numeric</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 17 Nov 2008 16:02:49 UTC</pubDate>
      <guid>https://snipplr.com/view/9862/check-for-duplicate-value-numeric</guid>
    </item>
    <item>
      <title>(Visual Basic) Check for duplicate value (text) - heislekw</title>
      <link>https://snipplr.com/view/9861/check-for-duplicate-value-text</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 17 Nov 2008 16:00:06 UTC</pubDate>
      <guid>https://snipplr.com/view/9861/check-for-duplicate-value-text</guid>
    </item>
    <item>
      <title>(Visual Basic) Delete confirmation - heislekw</title>
      <link>https://snipplr.com/view/9198/delete-confirmation</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 22 Oct 2008 16:45:03 UTC</pubDate>
      <guid>https://snipplr.com/view/9198/delete-confirmation</guid>
    </item>
    <item>
      <title>(Visual Basic) Set all controls on a form to null - heislekw</title>
      <link>https://snipplr.com/view/9165/set-all-controls-on-a-form-to-null</link>
      <description>&lt;p&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 21 Oct 2008 12:53:01 UTC</pubDate>
      <guid>https://snipplr.com/view/9165/set-all-controls-on-a-form-to-null</guid>
    </item>
  </channel>
</rss>
