Results 1 to 5 of 5
  1. #1
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664

    Why is this section of the form dirty


    In the following file which I have attached and uploaded the form is now a combination of two forms. The two are AddPersonal Form added to Personal Form.

    You can see the AddPersonal Form by itself by just clicking on it in the Navigation window.

    Now what I am confused about is if you open the AddPersonal Form by itself, all the entries First Name, Last Name, Preferred, are empty they are not dirty. They contain nothing no names. This is as it should be.

    However. when you open the Personal Form which now has the AddPersonal Form included at the top it does contain names, they are dirty, namely one name from the employees list or the last employee added.

    This is not as it should be. I want the first name, last name, and preferred name spaces to be empty as it was in the AddPersonal Form.

    What is causing this and how do I fix it?

    Any help appreciated. Thanks in advance.

    Respectfully,

    Lou Reed
    Attached Files Attached Files

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    I find the IsDirty functions useless and quit using them long ago.

  3. #3
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664
    Okay, but as you can see in Personnel Form (opened by itself) the first name, last name, and preferred name are empty. It is like their contents have been transferred to the list of active personnel list down in the form below.

    However, when I add the AddPersonnel Form to the Personnel Form and open this form in form view the contents of each of these three boxes is still shown, say Soupy Sale, Soupy. It not empty as shown in the AddPersonnel box when opened by itself.

    My goal here is to have those three boxes in the new Personnel form to be empty. I just cannot see how to do that.

    That is my question. It looks rough, tacky, and unprofessional to have those boxes showing past added name whenever this modified Personnel form is opened.

    How do I get rid of them?

    Any help appreciated. Thanks in advance.


    Respectfully,


    Lou Reed

  4. #4
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Lou -
    Your database uses linked tables which you did not provide, so it is impossible to open the forms to see what you are referring to.

  5. #5
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Your frmPersonnel has several cases where you have two text box controls with the same control source, (e.g. LastName and FirstName), so they are referring to the same field in the form's underlying table or query. When you do that, both textboxes will always show the same value (for the current record). When two textboxes are bound to the same table field, you cannot have one blank and the other not - it's just not possible (and wouldn't make sense, anyway).

Please reply to this thread with any new information or opinions.

Similar Threads

  1. use text value when form is dirty...
    By gangel in forum Forms
    Replies: 2
    Last Post: 06-29-2015, 01:15 AM
  2. Replies: 2
    Last Post: 01-09-2014, 07:24 PM
  3. Replies: 6
    Last Post: 03-26-2013, 12:17 PM
  4. Replies: 1
    Last Post: 12-12-2011, 01:58 PM
  5. On Dirty fires but Me.Dirty = False (v2010)
    By Rod in forum Programming
    Replies: 5
    Last Post: 07-30-2011, 08:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums