PC Review


Reply
Thread Tools Rate Thread

Access 2000 view Outlook 2000 Inbox error

 
 
bobdydd
Guest
Posts: n/a
 
      31st Oct 2005
Hi Everybody

I have an Access 2000 query that "sees" the Outlook 2000 Inbox. This
works fine until an email arrives where the subject field is empty
(Null)

This causes a type mismatch message.

I have tried "Is Not Null" No Joy.

Does anyone know a way to trap this error?

Regards and Thanks Bob

 
Reply With Quote
 
 
 
 
Graham Mandeno
Guest
Posts: n/a
 
      31st Oct 2005
Hi Bob

hard to say without some more information.

How about you post the SQL of your query (View>SQL view, then copy and
paste).
--
Good Luck!

Graham Mandeno [Access MVP]
Auckland, New Zealand

"bobdydd" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Everybody
>
> I have an Access 2000 query that "sees" the Outlook 2000 Inbox. This
> works fine until an email arrives where the subject field is empty
> (Null)
>
> This causes a type mismatch message.
>
> I have tried "Is Not Null" No Joy.
>
> Does anyone know a way to trap this error?
>
> Regards and Thanks Bob
>



 
Reply With Quote
 
bobdydd
Guest
Posts: n/a
 
      1st Nov 2005
Hi Graham
Thanks for taking the time to help me. The SQL of this query is a s
follows:

SELECT CDbl(Format([Received],"yymmddnnss")) AS InboxID, ([Created]) AS
CreatedDate, ([Created]) AS CreatedTime, Inbox.From, Inbox.To,
Inbox.Subject, Inbox.Contents, NumbersOnly([Subject]) AS
NumbersInSubjectField, Right([NumbersInSubjectField],10) AS
ListingEbayNumber, Day([received])+10 AS IDDay, Hour([received])+10 AS
IDTimeHour, Minute([received])+10 AS IDTimeMinute,
Second([received])+10 AS IDTimeSecond
FROM Inbox
WHERE (((NumbersOnly([Subject])) Is Not Null) AND ((Day([received])+10)
Is Not Null) AND ((Hour([received])+10) Is Not Null) AND
((Minute([received])+10) Is Not Null) AND ((Second([received])+10) Is
Not Null))
ORDER BY Inbox.Subject;

 
Reply With Quote
 
Graham Mandeno
Guest
Posts: n/a
 
      1st Nov 2005
Hi Bob

A very interesting looking query!!

I suspect the problem in in the function call:
NumbersOnly([Subject])

I assume that NumbersOnly is a user-defined function somewhere in one of
your project's modules.

My guess is that is it is declared to receive an "As String" argument. For
example:
Public Function NumbersOnly ( MyArgument As String ) As <something>

Because Null is not a string, this will fail. You must either convert the
Null to a string, or change the function so it will accept the Null. The
only VB data type that can be Null is a Variant, so you must change the "As
String" to "As Variant".

I'm sure that if you tell us what NumbersOnly is doing (i.e. post the code)
then someone might be able to suggest a simpler form for your query.
--
Good Luck!

Graham Mandeno [Access MVP]
Auckland, New Zealand


"bobdydd" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Graham
> Thanks for taking the time to help me. The SQL of this query is a s
> follows:
>
> SELECT CDbl(Format([Received],"yymmddnnss")) AS InboxID, ([Created]) AS
> CreatedDate, ([Created]) AS CreatedTime, Inbox.From, Inbox.To,
> Inbox.Subject, Inbox.Contents, NumbersOnly([Subject]) AS
> NumbersInSubjectField, Right([NumbersInSubjectField],10) AS
> ListingEbayNumber, Day([received])+10 AS IDDay, Hour([received])+10 AS
> IDTimeHour, Minute([received])+10 AS IDTimeMinute,
> Second([received])+10 AS IDTimeSecond
> FROM Inbox
> WHERE (((NumbersOnly([Subject])) Is Not Null) AND ((Day([received])+10)
> Is Not Null) AND ((Hour([received])+10) Is Not Null) AND
> ((Minute([received])+10) Is Not Null) AND ((Second([received])+10) Is
> Not Null))
> ORDER BY Inbox.Subject;
>



 
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
Outlook 2000 reset inbox default view =?Utf-8?B?R2VvZmY=?= Microsoft Outlook Discussion 3 30th Jun 2007 05:48 PM
how do I view a second identity's email inbox on Outlook 2000 =?Utf-8?B?c2FuZGJhZw==?= Microsoft Outlook Discussion 1 17th Aug 2006 03:05 AM
Unable to view INBOX -- Outlook 2003/Exchange 2000 mapitty@purdue.edu Microsoft Outlook 0 11th Mar 2004 04:43 PM
Automation Error - Access 2000 to Outlook 2000 Peter Caine Microsoft Access 1 9th Sep 2003 08:43 AM
Outlook 2000 Inbox View Doesn't Update Mark Willis Microsoft Outlook 2 5th Aug 2003 10:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:15 PM.