Hi Folks,
I am trying to slap a few on this issue rather than figuring it out, as I tried to figure it out for hours and hours on end and just need a bit of code to 'patch' it right now.
I have a huge Microsoft access database front-end tied to a massive sql server back end. Tons of fields, forms, relationships, queries, reports, macros, modules ... it is loaded with everything.
The problem is that for a certain set of dates on this form, for whatever reason, the format that is being displayed is YYYY-MM-DD. Changing the formatting and other options in the field properties does not help. In an attempt to figure out what is causing this, this is what I found:
If I link the SQL tables manually the aforementioned data fields are properly displayed as MM/DD/YYYY. However, if I use some tried and true code that has proven to work flawlessly over the years to link the SQL tables using the exact same account as the manual link, the fields are displayed as YYYY-MM-DD. Apparently, this is some deep and hidden issue here that I am not going to be able to fix because I tried everything and this is what is causing it. The code that links the tables does ONLY that and does not act like this in any other database ... I tried it all folks ... this seems to be a glitch with something that I am not going to be able to fix in my lifetime deep inside Microsoft software :banghead:
I am wondering if I can try to BRUTE FORCE these dates to MM/DD/YYYY via some code that can be ran in a module on the form open or on current. This would be my last ditch effort as again, changing anything in an attempt to get these dates to be in the format I need them to be will not work whatsoever for these particular dates ...
How would I attempt to override this in vba using brute force?
I tried the following to no avail:
Me.[DateField].Format, "MM/DD/YYYY" along with a few others and they don't render error or change the format.
Thank you very much for any help,
Joe
I am trying to slap a few on this issue rather than figuring it out, as I tried to figure it out for hours and hours on end and just need a bit of code to 'patch' it right now.
I have a huge Microsoft access database front-end tied to a massive sql server back end. Tons of fields, forms, relationships, queries, reports, macros, modules ... it is loaded with everything.
The problem is that for a certain set of dates on this form, for whatever reason, the format that is being displayed is YYYY-MM-DD. Changing the formatting and other options in the field properties does not help. In an attempt to figure out what is causing this, this is what I found:
If I link the SQL tables manually the aforementioned data fields are properly displayed as MM/DD/YYYY. However, if I use some tried and true code that has proven to work flawlessly over the years to link the SQL tables using the exact same account as the manual link, the fields are displayed as YYYY-MM-DD. Apparently, this is some deep and hidden issue here that I am not going to be able to fix because I tried everything and this is what is causing it. The code that links the tables does ONLY that and does not act like this in any other database ... I tried it all folks ... this seems to be a glitch with something that I am not going to be able to fix in my lifetime deep inside Microsoft software :banghead:
I am wondering if I can try to BRUTE FORCE these dates to MM/DD/YYYY via some code that can be ran in a module on the form open or on current. This would be my last ditch effort as again, changing anything in an attempt to get these dates to be in the format I need them to be will not work whatsoever for these particular dates ...
How would I attempt to override this in vba using brute force?
I tried the following to no avail:
Me.[DateField].Format, "MM/DD/YYYY" along with a few others and they don't render error or change the format.
Thank you very much for any help,
Joe