473,385 Members | 1,564 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 1919
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.google.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("date").

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.com> 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
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...
26
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...
2
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...
2
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...
3
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...
29
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...
10
by: melissa.nava | last post by:
Here is my code: ***** Public Property DOB() As Date Get Try DOB = (msBirthMonth + "/" + msBirthDay + "/" + msBirthYear)
8
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...
7
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.