Results 1 to 14 of 14
  1. #1
    awscorp is offline Novice
    Windows 11 Office 365
    Join Date
    Oct 2024
    Posts
    8

    Data entry form reversing data fields in table


    I've not seen this happen before in this DB that has been used for years here.

    In the table on the left you can see the Year and Place fields with the information they contain, and on the right in the Data Entry form the first user returns properly but the next person shows the Year and Place data reversed.
    Click image for larger version. 

Name:	2024-10-31_001.png 
Views:	65 
Size:	28.1 KB 
ID:	52367

    So if I enter a new record at this point the form will enter the Year into the Place and the Place into the Year field in the DB.
    Click image for larger version. 

Name:	2024-10-31_002.png 
Views:	62 
Size:	11.6 KB 
ID:	52368

    Wondering if anyone has come across an issue like this before..
    Thanks..

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Something is changing the RowSource property of comboboxes?

    If you want to provide db for analysis, we might be able to figure out what.

    Why is VoteYear not a date/time field?
    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
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    Or the bound column property of the combos has been altered? Check that the bound column is correct.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    awscorp is offline Novice
    Windows 11 Office 365
    Join Date
    Oct 2024
    Posts
    8
    Feels like it is but doesn't do it for all records.. This is in the Datasheet form entry mode so it seems like if it were going to reverse fields then it would want to do that with all the records but it seems to feel random for some reason.

    The year wasn't a date field since they had only been a number but then they started doing them more than once a year so it ended up being just a text field, that they use the default value for so they really only needed to enter a place.Voters - Reversing table fields example .zip

  5. #5
    awscorp is offline Novice
    Windows 11 Office 365
    Join Date
    Oct 2024
    Posts
    8
    Forgot to mention this can be seen when using the 3rd option in the menu list labeled with "Datasheet".

    Hoping I am just missing something simple here..

  6. #6
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2021
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,740
    Unable to replicate. Added users and ballots.

    Click image for larger version. 

Name:	NoSwaps.png 
Views:	57 
Size:	30.3 KB 
ID:	52370

  7. #7
    awscorp is offline Novice
    Windows 11 Office 365
    Join Date
    Oct 2024
    Posts
    8
    Thanks for trying it. From here if I create a new person then go to Datasheet
    1. after entering a new record I close and reopen the datasheet view
    2. click the drop down of Place and can see the default year appear
    3. then after selecting a place my default Year disappears and the previously entered record reverses.
    Click image for larger version. 

Name:	2024-11-01_273.jpg 
Views:	58 
Size:	104.7 KB 
ID:	52373
    I can't think of how I can be doing anything different from here. Does feel like something about the data entry form is getting mixed up on the fly.

  8. #8
    moke123's Avatar
    moke123 is online now Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,879
    Looking through your code I noticed you do not have option explicit declared in your modules. You also disable warnings in your macros but do not re-enable them.

    I also could not recreate your issue.
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  9. #9
    awscorp is offline Novice
    Windows 11 Office 365
    Join Date
    Oct 2024
    Posts
    8
    Thanks for taking a look at this.. I will update those macros\modules for sure.

  10. #10
    awscorp is offline Novice
    Windows 11 Office 365
    Join Date
    Oct 2024
    Posts
    8
    One thing I am noticing is that when in the datasheet view if I click the plus on one record then it doesn't matter which record I click next and they get revered (Left side). But if I click on the plus and then click it again to collapse before clicking on a second one then it doesn't seem to reverse on me. (Right side)Click image for larger version. 

Name:	2024-11-01_288.jpg 
Views:	46 
Size:	122.5 KB 
ID:	52375
    Actually I forgot to include I did click on the record before clicking the plus in this, which is what caused me to see the fields swap places. Not sure if that might mean something?

  11. #11
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2021
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,740
    I have never seen that behavior before.
    But perhaps the reason is because I've never seen datasheets used that way before.
    Pretty rare user technique, I think.
    For me, the reversal (when it occasionally happened) in the form did not update the table in that reversed way.

    Quite odd and the form has no module code.

    Some more experimenting and found that if I made these changes, the problem went away, but can't say for sure if it fixed it because the problem is very intermittent.

    Click image for larger version. 

Name:	Vote.png 
Views:	41 
Size:	22.9 KB 
ID:	52376
    Last edited by davegri; 11-02-2024 at 12:49 PM.

  12. #12
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Also cannot replicate issue.

    Why does Property Sheet display in Datasheet View?

    I have never used datasheet/subdatasheet view, only form/subform.
    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.

  13. #13
    awscorp is offline Novice
    Windows 11 Office 365
    Join Date
    Oct 2024
    Posts
    8
    Thanks for taking a look at this! I can certainly have them test it out. This was created 20 years ago so my guess is that because it didn't require any coding and it was in an easy to navigate view for them to search\enter data they never tried anything different. I had been thinking about overhauling all of it but they are so used to it and I didn't want to make it more complicated.. lol..

  14. #14
    awscorp is offline Novice
    Windows 11 Office 365
    Join Date
    Oct 2024
    Posts
    8
    Just an update on this issue, in case anyone was curious. This seemed to only happen with the Office365 version of the application version 2410\2411, but if I loaded Office 2021 instead then the issue did not happen. So after a couple of months with Microsoft support they did determine the issue and will have a fix for that behavior in the 2510 version due to be released at some point soon. Thanks for everyone who took a look at this. It was definitely a strange issue..

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

Similar Threads

  1. Replies: 4
    Last Post: 12-21-2015, 10:57 PM
  2. Reversing rowsource order for a multicolumn listbox
    By wackywoo105 in forum Programming
    Replies: 6
    Last Post: 12-10-2014, 06:26 AM
  3. Replies: 6
    Last Post: 09-27-2012, 08:27 AM
  4. Reversing Conversion from Access 07 to Access 2000
    By ottawaroderick in forum Access
    Replies: 5
    Last Post: 03-16-2011, 10:33 AM

Tags for this Thread

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