473,595 Members | 2,442 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Date function turning to date

I am having the strangest problem. I use the Date function in several
of my forms and modules in an Access 2000 mdb. Lately, wherever in my
code (in this one mdb) I use the Date function, it changes to date
(lower case vs proper case). I can fix this very temporarily by
reconstructing the database (importing all objects to a new mdb) or
using the decomplie option to open it. But in either case, once I
compile it reverts back to lower case. It does not seem to impact the
functionality of the function - in other words, it still works either
way. I have played with the references and they all seem fine. But I
do not seem to be able to get it to be using Date. I have other
databases that have many of the same modules and some of the same
forms etc and none of these other DB's are having the same problem
with Date vs date. They are all on the same computer.

The reason I care about this so much, since it does 'work' is that I
have developed a Version Control kind of system for myself to help
track changes as I develop, and to make it easy to know which objects
have changed and need to be propagated to other databases. Esentially
I create a Checksum for each object and save it in an Updates table.
At least once a day, I run my Version Control and it checks to see if
any objects have a new checksum and if so, updates the Update table
and prompts me for a comment to be saved alng with the latest Checksum
for the object. My checksum formula is case sensitive so I get a
different checksum for Date than for date and thus it makes it
impossible to compare objects across DB's since identical (except for
Date) objects get a different checksum.

Has anyone seen anything like this before? any suggestions? I guess I
could change my checksum algorithm, but it has been working ok for a
few weeks and I don't know why it has started doing this now. Any
insights? Ultimately, this is all an effort to get around the fact
that Access 2000 doesn't give me a nice way to know when objects were
last modified. So I have put a lot of time and energy into trying to
compensate with my own version control solution. I'm also interested
in knowing if there are any other solutions to this out there.

TIA,
Christine
Nov 12 '05 #1
4 1932
Most likely, somewhere in your database or one of your references is
something called date (as opposed to Date).

To be honest there is no need to worry about this as long as it is picking
up the Date function where appropriate.

If your really concerned about it just use VBA.Date and it should capitalise
correctly.

You should be able to find the offending item from the Object Browser.
--
Terry Kreft
MVP Microsoft Access
"Christine" <ct******@stny. rr.com> wrote in message
news:24******** *************** *@posting.googl e.com...
I am having the strangest problem. I use the Date function in several
of my forms and modules in an Access 2000 mdb. Lately, wherever in my
code (in this one mdb) I use the Date function, it changes to date
(lower case vs proper case). I can fix this very temporarily by
reconstructing the database (importing all objects to a new mdb) or
using the decomplie option to open it. But in either case, once I
compile it reverts back to lower case. It does not seem to impact the
functionality of the function - in other words, it still works either
way. I have played with the references and they all seem fine. But I
do not seem to be able to get it to be using Date. I have other
databases that have many of the same modules and some of the same
forms etc and none of these other DB's are having the same problem
with Date vs date. They are all on the same computer.

The reason I care about this so much, since it does 'work' is that I
have developed a Version Control kind of system for myself to help
track changes as I develop, and to make it easy to know which objects
have changed and need to be propagated to other databases. Esentially
I create a Checksum for each object and save it in an Updates table.
At least once a day, I run my Version Control and it checks to see if
any objects have a new checksum and if so, updates the Update table
and prompts me for a comment to be saved alng with the latest Checksum
for the object. My checksum formula is case sensitive so I get a
different checksum for Date than for date and thus it makes it
impossible to compare objects across DB's since identical (except for
Date) objects get a different checksum.

Has anyone seen anything like this before? any suggestions? I guess I
could change my checksum algorithm, but it has been working ok for a
few weeks and I don't know why it has started doing this now. Any
insights? Ultimately, this is all an effort to get around the fact
that Access 2000 doesn't give me a nice way to know when objects were
last modified. So I have put a lot of time and energy into trying to
compensate with my own version control solution. I'm also interested
in knowing if there are any other solutions to this out there.

TIA,
Christine

Nov 12 '05 #2
Terry, Thanks for your speedy response.

I tried your idea of using VBA.Date, but this still results in VBA.date
in the DB that has this problem. No matter how many times I type it in,
it immediately reverts to VBA.date - but only in that particular DB -
not any of my others. I've used the Object Explore to try to find the
source of this reference but cannot find it.

As I mentioned in my email, the reason I do care is that this behavious
is not consistent across my different DB's and I am trying to use a
checksum approach to keeping identical objects in the different DB's
synchronized by using the checksum to compare them. This variation of
date vs Date is messing up the checksums.

TIA,
Christine

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3
One thing to watch out for is that even !<field-name> or !<control-name>
references will affect capitalization in Access VB, and it insists on having
the same word use the same capitalization -everywhere- it appears in code, so
the same code simply cannot contain Date() and rst!date. Either both are
capitalized, or both are not. You can get around this my using
rst.Fields("dat e").

That still may not be the whole story, though. I find that sometimes Access
insists on remembering a reference that's no longer around. Importing into a
new database brings this dead reference along with it, so that's no help. The
only fix I've found is to make a copy of the database with all modules removed
(set HasModule to No on all forms and reports), decompile that database, then
copy each module's text from the original database out into Notepad, fix the
capitalization, then copy and paste that into the new database. I'm pretty
sure that worked for me before.

On 13 May 2004 15:56:44 GMT, Christine <ct***@aol.co m> wrote:
Terry, Thanks for your speedy response.

I tried your idea of using VBA.Date, but this still results in VBA.date
in the DB that has this problem. No matter how many times I type it in,
it immediately reverts to VBA.date - but only in that particular DB -
not any of my others. I've used the Object Explore to try to find the
source of this reference but cannot find it.

As I mentioned in my email, the reason I do care is that this behavious
is not consistent across my different DB's and I am trying to use a
checksum approach to keeping identical objects in the different DB's
synchronized by using the checksum to compare them. This variation of
date vs Date is messing up the checksums.

TIA,
Christine

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 12 '05 #4
Steve,
Thank you so much for your insight. It turned out that one of the
controls on one of my forms was named 'date'. Once I changed that and
then reconstructed the DB again (import all objects), I was able to do a
Compile and keep the Date.

Phew... what an ordeal. I don't think I would ever have tracked that
down without your response. Also thank God for Speed Ferret, to find the
control. I have 151 forms in my mdb and most of them have modules. The
thought of dealing with each one module-free then adding the module, was
really a horrible thought.

So, I really hope this is it and the problem is gone for good. My
confidence in Access 2000 for serious development goes down hill
everyday. My checksum Version Control is my last attempt to live with
it, before resorting back to Access 97, which seems like a step
backward, on the other hand, things seemed to work so much better then.

Again - thanks a million.
Christine

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
4944
by: Penn Markham | last post by:
Hello all, I am writing a script where I need to use the system() function to call htpasswd. I can do this just fine on the command line...works great (see attached file, test.php). When my webserver runs that part of the script (see attached file, snippet.php), though, it doesn't go through. I don't get an error message or anything...it just returns a "1" (whereas it should return a "0") as far as I can tell. I have read the PHP...
26
2331
by: TomB | last post by:
I have a function on an "included" page. For reasons unknown to me I frequently will get an error - to the effect that the function can't be found. If I hit refresh/F5 it loads the page just fine. It doesn't happen often .. maybe once every 50 pages. It also doesn't happen on any specific page.
2
34093
by: FN | last post by:
I'm new to javascript and internet research is turning up weird things. I just want to add 5 seconds to a date value. this = new date() // I believe this sets the time, too, right? //now how do I add 5 seconds or even 5000 seconds to the variable 'this'?
2
3347
by: Jeffrey E. Forcier | last post by:
This seems like a dead simple question, as it's so rudimentary I can't believe it hasn't been addressed before. I'm using the time.strftime() function (actually the mxDateTime implementation, but they're compatible so it shouldn't matter) to spit out fairly basic date formats, to wit: January 25th, 2005 The various and sundry date objects in both mxDateTime and Python proper's time/datetime don't seem to have anything anywhere dealing
3
14605
by: andrew | last post by:
Hi: I am already using TreeMap to massage records in my export file such that each record has a unique key combination ( LastName + FirstName + Member Key) . Thus I am sorting the records by the unique key. I also have a Date String Field in my record ( ie "30-Apr-2005" ). I want to create a unique key combination of ( LastName + FirstName + Member Key + Date). Can you please tell me what are the steps I need to do to sort the Date
29
9085
by: james | last post by:
I have a problem that at first glance seems not that hard to figure out. But, so far, the answer has escaped me. I have an old database file that has the date(s) stored in it as number of days. An example is: 36,525 represents 01/01/1900. The starting point date is considered to be : 00/00/0000. I have looked thru Help and used Google and have not really found an answer. I know that Leap Years need to be accounted for too. Any...
10
1668
by: melissa.nava | last post by:
Here is my code: ***** Public Property DOB() As Date Get Try DOB = (msBirthMonth + "/" + msBirthDay + "/" + msBirthYear)
8
1944
by: nishkrish | last post by:
Hi, I am new to access I created the form and report from Allen Browne's Frmwhat Date the way he has described but when i preview report it shows StartDate: name? Enddate: name? am i suppose to attach this form or report to some table or query if so how
7
3486
hodgeman
by: hodgeman | last post by:
Hello thescripts forums users... I've found a lot of answers to problems I've had in the past from this forum, and this is the first mySQL query issue I haven't been able to find an answer from anywhere so thought my time first post should be here. With that out the way... I have a website I've built for my day job rotoruaNZ.com/events that I'd like to improve upon. We have numerous events posted on our website that take place around...
0
7883
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8262
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8252
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6675
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
3875
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2391
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1491
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1226
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.