Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 56
  1. #31
    twgonder is offline Expert
    Windows 10 Access 2016
    Join Date
    Jun 2022
    Location
    Colombia
    Posts
    658

    More fun with validation

    So I thought I would have some more fun with post #28.
    I added a simple validation I found to the MyDate field to see what happens


    When I try to change the date in the table datasheet view I get this:
    Click image for larger version. 

Name:	221218err4.jpg 
Views:	18 
Size:	137.2 KB 
ID:	49331

    Figuring that maybe the "" around m might be a problem, I deleted one " on each side.
    Very interesting error messages for a simple validation copied from a Microsoft help.

  2. #32
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    seems to me that your continuing contempt for access does you no favours, Access is what it is, not what you think, or want, it to be. It has served me and my clients well for 25 odd years and continues to do so.

    I've reviewed dozens of large applications written in Access. They have fallen short of anything I've reviewed that were developed by db professionals
    Interesting - so very few are for general consumption, most are unique to the client and therefore not available for review. Those that are available are typically examples of how something could be done, not necessarily representing good practice and I resent the implication that access developers are not professional.

    I can't believe that you are the only one needing to handle multi language scenarios, yet we don't hear of the problems you seem to experience from others. As far as this thread is concerned, you have been given answers, yet you want to know why access doesn't behave as you expect - go ask MS. Everybody else understands this is the way it works, this is how you resolve it. They don't need to ask why, they just get on with it.

    I'm tired of your constant access knocking so I for one am not going to respond to your posts any longer. If you check who has been responding on this forum, there are precious few - 4 by my count of your last few threads. You've just lost 25%

    Edit: final comment since you have posted whilst I was drafting the above and an example of your lack of transparency.
    copied from a Microsoft help.
    provide the link - might help others to tell you why you get the problem.

  3. #33
    twgonder is offline Expert
    Windows 10 Access 2016
    Join Date
    Jun 2022
    Location
    Colombia
    Posts
    658
    So, I thought I would have some more fun with post #28.
    I added this simple validation rule copied from a Microsoft help.
    And here's what happens.

    Click image for larger version. 

Name:	221218err4.jpg 
Views:	22 
Size:	137.2 KB 
ID:	49332
    I tried making it " instead of "" around the m, more interesting messages.

  4. #34
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    I too have grown tired of the incessant posting about how the tool is lacking when things don't work as you expect. That wouldn't be so bad if it were true or you were simply looking for enlightenment. Instead you continually gripe about what you perceive as shortcomings of the tool but the real issue is you put stuff together without "reading the manual". The latest is just another complaint about the same sort of thing - this time it's about using Date functions in table validation - an easily searchable subject that should take you 2 minutes to discover that it isn't allowed. Instead, the perception is that the tool you are using is so inferior to everything else you've used and it can't be that you aren't reading the assembly instructions for it.
    Good luck. Signing off.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #35
    twgonder is offline Expert
    Windows 10 Access 2016
    Join Date
    Jun 2022
    Location
    Colombia
    Posts
    658
    Quote Originally Posted by Micron View Post
    I too have grown tired of the incessant posting about how the tool is lacking when things don't work as you expect. That wouldn't be so bad if it were true or you were simply looking for enlightenment. Instead you continually gripe about what you perceive as shortcomings of the tool but the real issue is you put stuff together without "reading the manual". The latest is just another complaint about the same sort of thing - this time it's about using Date functions in table validation - an easily searchable subject that should take you 2 minutes to discover that it isn't allowed. Instead, the perception is that the tool you are using is so inferior to everything else you've used and it can't be that you aren't reading the assembly instructions for it.
    Good luck. Signing off.
    That's a funny comment. I'm guessing you didn't take the time to read that I pulled the expression right out of a Microsoft Access help on the topic. What special super-powers do you have that allow you to fathom my motives? So, you saw nothing strange in the Errors.accdb and how a simple form in Access behaves for field validation?

  6. #36
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,654
    Quote Originally Posted by twgonder View Post
    So, I thought I would have some more fun with post #28.
    I added this simple validation rule copied from a Microsoft help.
    And here's what happens.

    Click image for larger version. 

Name:	221218err4.jpg 
Views:	22 
Size:	137.2 KB 
ID:	49332
    I tried making it " instead of "" around the m, more interesting messages.
    I think I spotted your error immediately. Not surprised by the error at all.

    I'm tempted to not point it out but I'm curious how acquainted you are with your datatypes.
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  7. #37
    twgonder is offline Expert
    Windows 10 Access 2016
    Join Date
    Jun 2022
    Location
    Colombia
    Posts
    658
    Quote Originally Posted by CJ_London View Post
    seems to me that your continuing contempt for access does you no favours, Access is what it is, not what you think, or want, it to be. It has served me and my clients well for 25 odd years and continues to do so.

    ...I resent the implication that access developers are not professional.
    That's good for you and what you expect. Maybe I'm just a bit more particular? You're resenting something I didn't say. That's an inference you drew, but not upon what I actually said. It could be other developers have just put up with the Access quirks, and it doesn't reflect on their individual abilities in designing an application. I'm kinda in that same boat right now.

    I can't believe that you are the only one needing to handle multi language scenarios, yet we don't hear of the problems you seem to experience from others. As far as this thread is concerned, you have been given answers, yet you want to know why access doesn't behave as you expect - go ask MS. Everybody else understands this is the way it works, this is how you resolve it. They don't need to ask why, they just get on with it.
    The question as I posted it has nothing to do with multi-language. It has to do with error checking, it's lack of consistency and trying to present users with a more acceptable alternative to understand what went wrong with their entry. If you're referring to the validation error, did you try it too? Did you get a different result? Did the result you got make any sense?

    I'm tired of your constant access knocking so I for one am not going to respond to your posts any longer. If you check who has been responding on this forum, there are precious few - 4 by my count of your last few threads. You've just lost 25%
    And I'm tired of people saying that I don't understand Access or that I said something I didn't say, or that I'm somehow using the 100-bladed-Swiss-knife in some way it wasn't designed to be used (kind of a silly argument when you think about it), while they avoid the question I'm asking, or answer some other question. But, I know I have to be patient and try to glean what I can from other's experience (when they take the time to closely read and follow the examples I give, I can't be the first to have these problems). After 25 years of experience, it shouldn't be so hard to understand my objections to certain things in Access. Gosh knows I see a lot of other threads in other sites with similar complaints. So, here I am trying to figure out how to work with them, rather than just give up and churn out crap code.

    Edit: final comment since you have posted whilst I was drafting the above and an example of your lack of transparency.
    provide the link - might help others to tell you why you get the problem.
    Which final part of which comment are you referring to? I too am posting while you are, so things aren't in exact order.

    Also, after month's on this forum, I'm still having posts disappear after writing extensively to some question or observation. I'm not sure if it's my connection or bugs in the forum software. I suspect it's this forum because it's far worse here than on other non-access related forums I use frequently. This sometimes puts me in a foul mood I admit.

  8. #38
    twgonder is offline Expert
    Windows 10 Access 2016
    Join Date
    Jun 2022
    Location
    Colombia
    Posts
    658
    Quote Originally Posted by moke123 View Post
    I think I spotted your error immediately. Not surprised by the error at all.

    I'm tempted to not point it out but I'm curious how acquainted you are with your datatypes.
    Well enough to know that Access isn't going to do me much good with historical figures and events that precede the year 0001.
    Oh, and I did read the MS helps (Using the Date/Time Extended data type - Microsoft Support), and I don't see anything that implies the expression shouldn't work. So, I'm curious, why aren't you surprised? Have you read something outside of the official Microsoft documentation that implies otherwise? And if so, what does that say about the MS documentation?

    This post should put to rest the complaint that I don't read the "assembly instructions."

  9. #39
    twgonder is offline Expert
    Windows 10 Access 2016
    Join Date
    Jun 2022
    Location
    Colombia
    Posts
    658
    Quote Originally Posted by CJ_London View Post
    seems to me that your continuing contempt for access does you no favours,...
    Maybe someone at Microsoft reads some of these forums? I know I did years ago for my own RAD (although they were bulletin boards and IRC back then).
    A problem ignored isn't going to solve itself.

    That said, the help I've gotten in this forum, and by that I mean actual tips and not just complaints about my complaints, have allowed me to design a system that I can live with (and almost be proud of) so far. The sad part is that I often spend days solving a simple problem that should take maybe an hour to resolve. And this is with the help of countless forum threads and Google searches, resources that weren't available when I had problems while developing my RAD and applications starting in the 70s-90s.

    But hey, what do I know? I do know that my news feeds come in with numerous daily reports of how this or that in Micrsoft products has failed due to some new update. I'm not the only one reporting problems with the engineering at Microsoft am I?

  10. #40
    twgonder is offline Expert
    Windows 10 Access 2016
    Join Date
    Jun 2022
    Location
    Colombia
    Posts
    658
    So, here I am, answering all these critical observations (instead of coding for user entry errors), and I don't see any evidence that anyone experimented with the errors in post #28. Not that anyone is obligated to, but to cast complaints about my experience without actually looking at the problem? Really?

  11. #41
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,654
    and I don't see anything that implies the expression shouldn't work.
    This post should put the rest the complaint that I don't read the assembly instructions.
    There's this
    The Access team has implemented a new data type: Date & Time Extended, which enhances syntax compatibility with SQL server, and increases the accuracy and level of detail in records that include dates and times. This investment aligns with our broader goal of building Access apps on top of data that can be stored in the cloud. ...

    If you’d like to reference the type in VBA code, please be aware that expressions on the type are not supported, given that the data will be casted as a text. However, performing calculations of the new type in VBA code is an investment that the Access team is planning for at a later date.
    and this
    Warning When you create expressions and use date/time functions based on the Date/Time Extended data type in Access, you may lose precision in calculations or encounter other problems with the results. We are aware of this issue and plan to better support expressions and functions in an upcoming release. As a workaround, you can Create a pass-through query to use the equivalent SQL Server expression and date/time functions. For more information, see Comparing Access SQL with SQL Server TSQL.
    Last edited by moke123; 12-19-2022 at 07:57 AM.
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  12. #42
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,654
    Quote Originally Posted by twgonder View Post
    So, here I am, answering all these critical observations (instead of coding for user entry errors), and I don't see any evidence that anyone experimented with the errors in post #28. Not that anyone is obligated to, but to cast complaints about my experience without actually looking at the problem? Really?
    I did and it did pretty much what I expected access to do. There's a reason for the cancel argument in the before update event and a proper method to erase the entry. You just didn't do it.
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  13. #43
    twgonder is offline Expert
    Windows 10 Access 2016
    Join Date
    Jun 2022
    Location
    Colombia
    Posts
    658
    Quote Originally Posted by moke123 View Post
    There's this
    Yes, I read that. But I fail to see that it says validation expressions won't work (unless I simply don't understand Microsoft speak). Why would adding nanoseconds to a time break the date portion? MS admits they released an incomplete solution that needs work (how many years ago was that feature added?). I think I've been saying pretty much the same in many of my supposed complaints. After squashing innovation in the market with anti-competitive antics, MS sits on their laurels, collects the $ and expects the public to be happy with their half-ass solutions and failure to fix bugs. I'm sorry if my analysis and observations on this offends some MS sycophants.
    Last edited by twgonder; 12-19-2022 at 06:09 PM.

  14. #44
    twgonder is offline Expert
    Windows 10 Access 2016
    Join Date
    Jun 2022
    Location
    Colombia
    Posts
    658
    Dang, another of my posts somehow didn't post. WTF?!!! I preview and post yet it disappears into the ether. When I get back from a trip, I'll do it again.

  15. #45
    twgonder is offline Expert
    Windows 10 Access 2016
    Join Date
    Jun 2022
    Location
    Colombia
    Posts
    658
    Quote Originally Posted by moke123 View Post
    I did and it did pretty much what I expected access to do. There's a reason for the cancel argument in the before update event and a proper method to erase the entry. You just didn't do it.
    Okay, I'm back to this one. Which field did you test? Was it the date error? Did you notice that the errors are happening in the Form On Error event? Did you notice that the before update event happens before the Form On Error event which is where the Access table and form validation, and text message for the developer to use, is run? So, the actual validation test that MS built into Access happens after the before update (which is premature given the error testing they themselves, not me, designed), and that it doesn't have a cancel event? This is what you expected?

    In other words, is it logical to run the before update event before the field has even been tested for basic data format entry errors? This is exactly what I mean when I say half-assed design, that should have been fixed decades ago. But now it's a bit late, given the number of developers that have worked around this kind of stupidity.

    And even if you do use cancel in the before update of the MyDate field (and give an error message), the Form On Error is going to run, which you then have to deal with. Even after a cancel?!!! Gosh, that makes so much sense, doesn't it?

    The only solution I now see is that every field that needs some kind of basic entry format test needs to have a before update routine, even though the Form On Error event is sitting there ready to do it's job, but it can't without a cancel and sufficient parameters for the developer to determine exactly what went wrong. Unless someone can enlighten me on how I'm using the "tool" incorrectly.

    NOTE: See post #47 before trying to duplicate the sequence of procedures mentioned above.
    Last edited by twgonder; 12-20-2022 at 09:12 AM. Reason: Exasperation

Page 3 of 4 FirstFirst 1234 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 6
    Last Post: 11-14-2021, 10:44 AM
  2. Error Handling: How to Skip an expected Error
    By Sa'El in forum Programming
    Replies: 2
    Last Post: 01-17-2016, 05:04 PM
  3. Replies: 5
    Last Post: 09-06-2015, 12:06 PM
  4. Error Handling Question - On Error Goto
    By redbull in forum Programming
    Replies: 7
    Last Post: 12-06-2012, 07:54 AM
  5. Replies: 3
    Last Post: 09-05-2012, 10:23 AM

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