PC Review


Reply
Thread Tools Rate Thread

VB CODE ERROR

 
 
SAM
Guest
Posts: n/a
 
      31st Jan 2004

I am trying to run the code below and I get this error
message. This code has been working fine in access XP but
when I attempt to use it in access 2000 I get this error
Can someone HELP!

Automation Error
Incorrect Inheritance depth in standard OLE hmember


Private Sub Form_Current()

If Not IsDate(Me.Notice_Return) Then
If DateDiff("d", Me.Notice_Sent, Date) >= 315 Then
MsgBox "You Have Georgia Comp. Hours You Are About
To Lose YOU HAVE 60 DAYS TO TAKE THESE HOURS", vbOKOnly +
vbExclamation
End If
End If

 
Reply With Quote
 
 
 
 
Dirk Goldgar
Guest
Posts: n/a
 
      2nd Feb 2004
"SAM" <(E-Mail Removed)> wrote in message
news:7bf601c3e80e$5ff95db0$(E-Mail Removed)
> I am trying to run the code below and I get this error
> message. This code has been working fine in access XP but
> when I attempt to use it in access 2000 I get this error
> Can someone HELP!
>
> Automation Error
> Incorrect Inheritance depth in standard OLE hmember
>
>
> Private Sub Form_Current()
>
> If Not IsDate(Me.Notice_Return) Then
> If DateDiff("d", Me.Notice_Sent, Date) >= 315 Then
> MsgBox "You Have Georgia Comp. Hours You Are About
> To Lose YOU HAVE 60 DAYS TO TAKE THESE HOURS", vbOKOnly +
> vbExclamation
> End If
> End If


There's nothing in that code itself that could cause such an error. I
don't know what "Notice_Return" or "Notice_Sent" are, but if they're
simple text boxes I doubt they could be the cause of the problem. Have
you stepped line by line through the code to see on exactly which line
the error is being raised?

Have you just copied a working database from an AXP system to an A2K
system? Maybe there's a problem with the references. See if the
procedures outlined in the following article help:


http://members.rogers.com/douglas.j....nceErrors.html

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


 
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
startup error code:0x80090006 ,,unable to locate activation code poolhouse Windows XP Help 1 24th Apr 2010 03:59 AM
Protect Sheet with code, but then code will not Paste error. How do i get around this. Please read for explainations.... Corey Microsoft Excel Programming 4 25th Nov 2006 05:57 AM
Floppy Disk drive it is gone. Error Code 31 ? - Error Code 31.zip (0/1) Cesar Altamirano Microsoft Windows 2000 1 11th May 2005 09:02 PM
problem error code : ctcatend: MO L65 FO P247x ERROR CODE=0 thom Windows XP Music 0 2nd Dec 2003 03:28 AM
I cannot find a setup error code in the KB (error code is 4) Ed Becker Microsoft Windows 2000 Setup 1 29th Oct 2003 01:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:47 PM.