Results 1 to 8 of 8
  1. #1
    cherold is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    82

    Field in one subform auto-updates, other doesn't, wondering why


    I have a form with two subforms from which I can open up a form for one of the listed records. These records have a date field which I can update to the current date. In one subform, updating the date causes it to show the new date, while the other will not show the change. As far as I can tell the properties for the two fields are the same.

    I'm very puzzled and don't know enough to figure this out. Could it be the relative complexity of the underlying subform queries? Or something in the other forms I'm opening that indicates whether or not related forms should be updated? Or is there a property I didn't notice, or wasn't aware had an effect.

    Does anyone have an idea how to figure this out?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    These subforms are bound to same records? If not, why would you expect entry in one to reflect in the other?

    Without knowing data structure and code, virtually impossible to determine nature of issue.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    In one subform, updating the date causes it to show the new date
    Shows it where? Where you just type it, or WHERE?
    while the other will not show the change.
    Again, Where should it show?

  4. #4
    cherold is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    82
    Sorry, I realized that the file failed to upload and I put in an old version of the file that was already in the upload manager. My internet is wonky or something and I can't upload anything, it seems, so just ignore this until I can try and upload from a different computer. Sorry again!
    Last edited by cherold; 06-28-2018 at 09:54 AM. Reason: remove wrong file

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    I wouldn't track times listened by incrementing a value in a field. That is saving aggregate data. But it is data that cannot be validated. What if there is accidental click? I would create a record for each time listened then calculate a count based on actual data.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    There is a form called "What to listen to next."
    The form is not in the dB of the attached zip. So... can't tell what the problem is.


    There are, however, several errors in the VBA code.........

  7. #7
    cherold is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    82
    Doesn't surprise me, but there was an error in the upload and I accidentally used a file I'd uploaded here years ago so it's not relevant to my issue. Although if you feel like telling me what the errors are I wouldn't mind; they're probably are still there. I'm sure my VBA code is riddled with errors.

  8. #8
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    The first error that pops up is in module "ParsePerformer". The top line is "Compare Database". It should be "Option Compare Database".

    EVERY module (standard, form and Report) should have
    Code:
    Option Compare Database
    Option Explicit
    as the top two lines.

    In the IDE, click on "TOOLS/Options", In the dialog box, click on "Require Variable Declaration".
    This will add "Option Explicit" to every NEW code module.

    Add "Option Explicit" to every code module.
    Once you add "Option Explicit", do a "Debug/Compile". You will be shown the errors (2 variables not declared - 1 variable misspelling).

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

Similar Threads

  1. Replies: 1
    Last Post: 11-15-2014, 12:43 PM
  2. Replies: 1
    Last Post: 07-16-2014, 01:45 PM
  3. Replies: 3
    Last Post: 06-19-2013, 02:39 PM
  4. Replies: 3
    Last Post: 10-03-2011, 02:33 PM
  5. Auto Populating Field in Subform
    By sparlaman in forum Forms
    Replies: 21
    Last Post: 03-28-2011, 12:58 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