A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , ,

custom form crashes in v2000





 
 
Thread Tools Display Modes
  #1  
Old March 31st 06, 04:54 PM posted to microsoft.public.outlook.program_forms
Martin
external usenet poster
 
Posts: 69
Default custom form crashes in v2000

My company's going through a (painful) migration to Office 2003 and we
currently have XP users with Outlook 2003 and two groups of NT users, some
with Outlook 98 but most with 2000. An essential custom form has been landed
on my desk to be fixed - I say this because I want to make clear I didn't
develop it and am only just starting to puzzle out the VB script behind it
(over 125 pages when pasted into Word). It works fine in 98 and 2003 but
causes an access violation in 2000 the moment you click on Send and Dr Watson
immediately takes over.

Any ideas where I should start looking? I'm used to working in VBA with all
its handy debugging tools and am unclear as to where to start! The form is
based on an external database (Access) and reads/updates that as well as well
as being sent to a fixed address within the company.

Thanks for any clues...
Ads
  #2  
Old March 31st 06, 05:10 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default custom form crashes in v2000

Create a new message using the form.
Choose Tools | Forms | Script Debugger
Put a breakpoint in the Item_Send handler.
Step through the code until you hit the error.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Martin" wrote in message ...
My company's going through a (painful) migration to Office 2003 and we
currently have XP users with Outlook 2003 and two groups of NT users, some
with Outlook 98 but most with 2000. An essential custom form has been landed
on my desk to be fixed - I say this because I want to make clear I didn't
develop it and am only just starting to puzzle out the VB script behind it
(over 125 pages when pasted into Word). It works fine in 98 and 2003 but
causes an access violation in 2000 the moment you click on Send and Dr Watson
immediately takes over.

Any ideas where I should start looking? I'm used to working in VBA with all
its handy debugging tools and am unclear as to where to start! The form is
based on an external database (Access) and reads/updates that as well as well
as being sent to a fixed address within the company.

Thanks for any clues...

  #3  
Old March 31st 06, 05:34 PM posted to microsoft.public.outlook.program_forms
Martin
external usenet poster
 
Posts: 69
Default custom form crashes in v2000

Thanks Sue. Unfortunately that feature isn't installed on my machine.
Instead, I deleted the Item_Sent procedure (leaving the Sub and End Sub
lines) and republished the form in Outlook 98 to a temp name. When I created
a new message based on this in Outlook 2000 (I have this set up on another
machine), it crashed again in an identical way.

What other handlers are triggered by clicking Send? Hmm, I've just spotted
"Item_CustomPropertyChange"...

"Sue Mosher [MVP-Outlook]" wrote:

Create a new message using the form.
Choose Tools | Forms | Script Debugger
Put a breakpoint in the Item_Send handler.
Step through the code until you hit the error.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Martin" wrote in message ...
My company's going through a (painful) migration to Office 2003 and we
currently have XP users with Outlook 2003 and two groups of NT users, some
with Outlook 98 but most with 2000. An essential custom form has been landed
on my desk to be fixed - I say this because I want to make clear I didn't
develop it and am only just starting to puzzle out the VB script behind it
(over 125 pages when pasted into Word). It works fine in 98 and 2003 but
causes an access violation in 2000 the moment you click on Send and Dr Watson
immediately takes over.

Any ideas where I should start looking? I'm used to working in VBA with all
its handy debugging tools and am unclear as to where to start! The form is
based on an external database (Access) and reads/updates that as well as well
as being sent to a fixed address within the company.

Thanks for any clues...


  #4  
Old March 31st 06, 05:59 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default custom form crashes in v2000

You can get the script debugger installed like this: Rerun Outlook/Office setup, and under Office Tools, install the HTML Source Editing/ Web Scripting / Web Debugging feature.

Item_Write would also be called, but only after Item_Send.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Martin" wrote in message ...
Thanks Sue. Unfortunately that feature isn't installed on my machine.
Instead, I deleted the Item_Sent procedure (leaving the Sub and End Sub
lines) and republished the form in Outlook 98 to a temp name. When I created
a new message based on this in Outlook 2000 (I have this set up on another
machine), it crashed again in an identical way.

What other handlers are triggered by clicking Send? Hmm, I've just spotted
"Item_CustomPropertyChange"...

"Sue Mosher [MVP-Outlook]" wrote:

Create a new message using the form.
Choose Tools | Forms | Script Debugger
Put a breakpoint in the Item_Send handler.
Step through the code until you hit the error.


"Martin" wrote in message ...
My company's going through a (painful) migration to Office 2003 and we
currently have XP users with Outlook 2003 and two groups of NT users, some
with Outlook 98 but most with 2000. An essential custom form has been landed
on my desk to be fixed - I say this because I want to make clear I didn't
develop it and am only just starting to puzzle out the VB script behind it
(over 125 pages when pasted into Word). It works fine in 98 and 2003 but
causes an access violation in 2000 the moment you click on Send and Dr Watson
immediately takes over.

Any ideas where I should start looking? I'm used to working in VBA with all
its handy debugging tools and am unclear as to where to start! The form is
based on an external database (Access) and reads/updates that as well as well
as being sent to a fixed address within the company.

Thanks for any clues...


  #5  
Old March 31st 06, 05:59 PM posted to microsoft.public.outlook.program_forms
Martin
external usenet poster
 
Posts: 69
Default custom form crashes in v2000

No that didn't work - I've cut out all Item_ events and, even if I just
create a new message and type nothing at all, it still crashes when I click
Send.

Feels like some sort of corruption but it's strange because the identical
form works fine in both 98 and 2003. I've tried making/undoing some design
changes in 2000 itself and republishing in 2000 but still no joy.

Any suggestions welcome...(!)

"Martin" wrote:

Thanks Sue. Unfortunately that feature isn't installed on my machine.
Instead, I deleted the Item_Sent procedure (leaving the Sub and End Sub
lines) and republished the form in Outlook 98 to a temp name. When I created
a new message based on this in Outlook 2000 (I have this set up on another
machine), it crashed again in an identical way.

What other handlers are triggered by clicking Send? Hmm, I've just spotted
"Item_CustomPropertyChange"...

"Sue Mosher [MVP-Outlook]" wrote:

Create a new message using the form.
Choose Tools | Forms | Script Debugger
Put a breakpoint in the Item_Send handler.
Step through the code until you hit the error.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Martin" wrote in message ...
My company's going through a (painful) migration to Office 2003 and we
currently have XP users with Outlook 2003 and two groups of NT users, some
with Outlook 98 but most with 2000. An essential custom form has been landed
on my desk to be fixed - I say this because I want to make clear I didn't
develop it and am only just starting to puzzle out the VB script behind it
(over 125 pages when pasted into Word). It works fine in 98 and 2003 but
causes an access violation in 2000 the moment you click on Send and Dr Watson
immediately takes over.

Any ideas where I should start looking? I'm used to working in VBA with all
its handy debugging tools and am unclear as to where to start! The form is
based on an external database (Access) and reads/updates that as well as well
as being sent to a fixed address within the company.

Thanks for any clues...


  #6  
Old March 31st 06, 06:08 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default custom form crashes in v2000

Sounds like a pretty dead form. Are you working from an .oft file or a published form definition? You might try republishing with Outlook 2003 to see if it behaves better then. Worst case is that you'll have to start from scratch with a new form, build up the pages with controls, then copy/paste the old code.

Or weight the cost of that against the cost of accelerating the upgrade of the Outlook 2000 users.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Martin" wrote in message ...
No that didn't work - I've cut out all Item_ events and, even if I just
create a new message and type nothing at all, it still crashes when I click
Send.

Feels like some sort of corruption but it's strange because the identical
form works fine in both 98 and 2003. I've tried making/undoing some design
changes in 2000 itself and republishing in 2000 but still no joy.

Any suggestions welcome...(!)

"Martin" wrote:

Thanks Sue. Unfortunately that feature isn't installed on my machine.
Instead, I deleted the Item_Sent procedure (leaving the Sub and End Sub
lines) and republished the form in Outlook 98 to a temp name. When I created
a new message based on this in Outlook 2000 (I have this set up on another
machine), it crashed again in an identical way.

What other handlers are triggered by clicking Send? Hmm, I've just spotted
"Item_CustomPropertyChange"...

"Sue Mosher [MVP-Outlook]" wrote:

Create a new message using the form.
Choose Tools | Forms | Script Debugger
Put a breakpoint in the Item_Send handler.
Step through the code until you hit the error.


"Martin" wrote in message ...
My company's going through a (painful) migration to Office 2003 and we
currently have XP users with Outlook 2003 and two groups of NT users, some
with Outlook 98 but most with 2000. An essential custom form has been landed
on my desk to be fixed - I say this because I want to make clear I didn't
develop it and am only just starting to puzzle out the VB script behind it
(over 125 pages when pasted into Word). It works fine in 98 and 2003 but
causes an access violation in 2000 the moment you click on Send and Dr Watson
immediately takes over.

Any ideas where I should start looking? I'm used to working in VBA with all
its handy debugging tools and am unclear as to where to start! The form is
based on an external database (Access) and reads/updates that as well as well
as being sent to a fixed address within the company.

Thanks for any clues...

  #7  
Old April 3rd 06, 11:32 AM posted to microsoft.public.outlook.program_forms
Martin
external usenet poster
 
Posts: 69
Default custom form crashes in v2000

Thanks for your help Sue. I'm going to try rebuilding the form you suggest.
It is odd though that 2003 and 98 are both happy with the current published
form and it's only 2000 that crashes.

If anyone has any further ideas, I'd be very grateful to hear them.


"Sue Mosher [MVP-Outlook]" wrote:

You can get the script debugger installed like this: Rerun Outlook/Office setup, and under Office Tools, install the HTML Source Editing/ Web Scripting / Web Debugging feature.

Item_Write would also be called, but only after Item_Send.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Martin" wrote in message ...
Thanks Sue. Unfortunately that feature isn't installed on my machine.
Instead, I deleted the Item_Sent procedure (leaving the Sub and End Sub
lines) and republished the form in Outlook 98 to a temp name. When I created
a new message based on this in Outlook 2000 (I have this set up on another
machine), it crashed again in an identical way.

What other handlers are triggered by clicking Send? Hmm, I've just spotted
"Item_CustomPropertyChange"...

"Sue Mosher [MVP-Outlook]" wrote:

Create a new message using the form.
Choose Tools | Forms | Script Debugger
Put a breakpoint in the Item_Send handler.
Step through the code until you hit the error.


"Martin" wrote in message ...
My company's going through a (painful) migration to Office 2003 and we
currently have XP users with Outlook 2003 and two groups of NT users, some
with Outlook 98 but most with 2000. An essential custom form has been landed
on my desk to be fixed - I say this because I want to make clear I didn't
develop it and am only just starting to puzzle out the VB script behind it
(over 125 pages when pasted into Word). It works fine in 98 and 2003 but
causes an access violation in 2000 the moment you click on Send and Dr Watson
immediately takes over.

Any ideas where I should start looking? I'm used to working in VBA with all
its handy debugging tools and am unclear as to where to start! The form is
based on an external database (Access) and reads/updates that as well as well
as being sent to a fixed address within the company.

Thanks for any clues...


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
custom form Charlie Outlook - Using Contacts 5 March 8th 06 05:24 PM
Custom form Melbin Outlook - Using Forms 1 January 24th 06 01:17 PM
I send an Outlook custom form, but a std. form displays? Sue Mosher [MVP-Outlook] Outlook - Using Forms 0 January 20th 06 08:41 PM
Cannot programmatically open custom message in custom form ms Outlook - Using Forms 1 January 20th 06 04:01 PM
Custom Form One-Off Fix? Boyd Outlook - Using Forms 1 January 9th 06 08:05 PM


All times are GMT +1. The time now is 07:08 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Deaf Topics - Debt Consolidation - Secure Web Hosting - Car Finance - Internet Advertising