PC Review


Reply
Thread Tools Rate Thread

Date function error Access 2002 - Access 2000

 
 
Harold
Guest
Posts: n/a
 
      2nd Sep 2004
Private Sub Date_DblClick(Cancel As Integer)
Me![End Date] = Date
End Sub

This code was originally written in Access 2000. I am
developing in Access 2002 and attempting to use the same
code. When installed and run on Windows 2000 server, the
code errors thusly - Cannot find object

If I change Date to Now, it works fine.

I ran accross some knowledge base info that indicates the
date function in 2000 requires the (), but access 2002
actually drops these parentheses. In this case, the
function is NOT treated as a function, but text (ie -
"Date")

Has any one else run into this problem and may be able to
provide some help?
 
Reply With Quote
 
 
 
 
Wayne Morgan
Guest
Posts: n/a
 
      2nd Sep 2004
Right off-hand it sounds like a problem with the References. Try the
information here to see if it helps.

http://members.iinet.net.au/~allenbrowne/ser-38.html

--
Wayne Morgan
Microsoft Access MVP


"Harold" <(E-Mail Removed)> wrote in message
news:514701c49111$c61a7230$(E-Mail Removed)...
> Private Sub Date_DblClick(Cancel As Integer)
> Me![End Date] = Date
> End Sub
>
> This code was originally written in Access 2000. I am
> developing in Access 2002 and attempting to use the same
> code. When installed and run on Windows 2000 server, the
> code errors thusly - Cannot find object
>
> If I change Date to Now, it works fine.
>
> I ran accross some knowledge base info that indicates the
> date function in 2000 requires the (), but access 2002
> actually drops these parentheses. In this case, the
> function is NOT treated as a function, but text (ie -
> "Date")
>
> Has any one else run into this problem and may be able to
> provide some help?



 
Reply With Quote
 
Guest
Posts: n/a
 
      2nd Sep 2004
I thought it had something to do with the references
also. I have determined that either/or makes use of VBA
ref VBE6.DLL, ver 6.4.99.69 as indicated in the object
browser.

Harold Fairbanks

>-----Original Message-----
>Right off-hand it sounds like a problem with the

References. Try the
>information here to see if it helps.
>
>http://members.iinet.net.au/~allenbrowne/ser-38.html
>
>--
>Wayne Morgan
>Microsoft Access MVP
>
>
>"Harold" <(E-Mail Removed)> wrote in

message
>news:514701c49111$c61a7230$(E-Mail Removed)...
>> Private Sub Date_DblClick(Cancel As Integer)
>> Me![End Date] = Date
>> End Sub
>>
>> This code was originally written in Access 2000. I am
>> developing in Access 2002 and attempting to use the

same
>> code. When installed and run on Windows 2000 server,

the
>> code errors thusly - Cannot find object
>>
>> If I change Date to Now, it works fine.
>>
>> I ran accross some knowledge base info that indicates

the
>> date function in 2000 requires the (), but access 2002
>> actually drops these parentheses. In this case, the
>> function is NOT treated as a function, but text (ie -
>> "Date")
>>
>> Has any one else run into this problem and may be able

to
>> provide some help?

>
>
>.
>

 
Reply With Quote
 
Wayne Morgan
Guest
Posts: n/a
 
      2nd Sep 2004
Bad references don't always make sense. If there is a bad reference, it may
not necessarily be in the dll that you're seeing the problem in. You may
even get what you're seeing, one function in a dll will work while another
won't, but the problem is one of the other references.

--
Wayne Morgan
Microsoft Access MVP


<(E-Mail Removed)> wrote in message
news:523a01c4911d$3d343fd0$(E-Mail Removed)...
>I thought it had something to do with the references
> also. I have determined that either/or makes use of VBA
> ref VBE6.DLL, ver 6.4.99.69 as indicated in the object
> browser.
>
> Harold Fairbanks
>
>>-----Original Message-----
>>Right off-hand it sounds like a problem with the

> References. Try the
>>information here to see if it helps.
>>
>>http://members.iinet.net.au/~allenbrowne/ser-38.html
>>
>>--
>>Wayne Morgan
>>Microsoft Access MVP
>>
>>
>>"Harold" <(E-Mail Removed)> wrote in

> message
>>news:514701c49111$c61a7230$(E-Mail Removed)...
>>> Private Sub Date_DblClick(Cancel As Integer)
>>> Me![End Date] = Date
>>> End Sub
>>>
>>> This code was originally written in Access 2000. I am
>>> developing in Access 2002 and attempting to use the

> same
>>> code. When installed and run on Windows 2000 server,

> the
>>> code errors thusly - Cannot find object
>>>
>>> If I change Date to Now, it works fine.
>>>
>>> I ran accross some knowledge base info that indicates

> the
>>> date function in 2000 requires the (), but access 2002
>>> actually drops these parentheses. In this case, the
>>> function is NOT treated as a function, but text (ie -
>>> "Date")
>>>
>>> Has any one else run into this problem and may be able

> to
>>> provide some help?

>>
>>
>>.
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using the IsLoaded() function in Access 2000 causes error, but not in Access 2002 Dave Microsoft Access Form Coding 3 29th Oct 2004 05:26 PM
Date function doesn't work in Access 2002 Lynn Microsoft Access Form Coding 3 6th Apr 2004 11:07 PM
Access 2002 Date Function Jerry Microsoft Access 2 16th Mar 2004 08:52 PM
Access 2002 Function Query with SQL 2000 Angelo Microsoft Access ADP SQL Server 0 19th Jan 2004 07:21 PM
Access 2002 Visual Basic Error in Access 2000 Bubba Microsoft Access Getting Started 0 15th Aug 2003 12:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:19 PM.