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: , , , , ,

delete and backspace key's not working after msgbox





 
 
Thread Tools Display Modes
  #1  
Old May 9th 08, 01:24 AM posted to microsoft.public.outlook.program_forms
lseat
external usenet poster
 
Posts: 1
Default delete and backspace key's not working after msgbox

Hi,

I'm a complete beginner with outlook forms and VB. I've put together a form with a series of input fields, and the values from these get put into the message field when the email is sent. Also there are a series of checks to to make sure all of the fields are complete and there is an attachment attached.

This all works fine, except if I leave a field blank and a warning message pops up and I click OK and go back to the field, I can enter text fine, but the delete and backspace keys do not work, in that field, or any other field that I've created. If I click in the message field and then back again, the ability to delete returns.

any ideas?

here's the gist of the code:

Function Item_Send()

If Item.Attachments.Count = 0 Then
Item_Send = False
ans = MsgBox("Please attach the master document.")
exit function
End If

If UserProperties.Find("Client").Value = "" Then
Item_Send = False
ans = MsgBox("Please enter the client’s name.")
exit function
End If

'Set the HTMLBody of the item.
Item.HTMLBody = "HTMLBODYFont face=Arial size=5 color=#999999bJob Release/b/Fontbr/Font face=Verdana size=2bClient: /b" & UserProperties.Find("Client").Value &_
"br/br/bOther Comments: /bbr/" & item.HTMLBody &_
"/Font/BODY/HTML"


End Function



Any help would be greatly appreciated.

Also, when the message is received it does not open in the Reading Pane, giving a message "This item contains active content that cannot be displayed in the Reading Pane. Open the item to read its contents." I haven't looked into this yet, but some help in the right direction would be great.

thanks in advance.
Ads
  #2  
Old May 12th 08, 09:39 PM posted to microsoft.public.outlook.program_forms
Guest
 
Posts: n/a
Default delete and backspace key's not working after msgbox

I have no idea why the delete and backspace keys do not work for you when
the cursor is within one of your custom fields. See if you can replicate
that behavior on another PC.

As for not displaying in the Reading Pane - that is a limitation of custom
forms - no way around it I'm afraid.

--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS 2007
& WSS 3.0 Application Development)
Collaborative Innovations
- Try Picture Attachments Wizard For Microsoft Outlook -
Web: http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault


"lseat" wrote in message
...
Hi,

I'm a complete beginner with outlook forms and VB. I've put together a
form with a series of input fields, and the values from these get put into
the message field when the email is sent. Also there are a series of
checks to to make sure all of the fields are complete and there is an
attachment attached.

This all works fine, except if I leave a field blank and a warning message
pops up and I click OK and go back to the field, I can enter text fine,
but the delete and backspace keys do not work, in that field, or any other
field that I've created. If I click in the message field and then back
again, the ability to delete returns.

any ideas?

here's the gist of the code:

Function Item_Send()

If Item.Attachments.Count = 0 Then
Item_Send = False
ans = MsgBox("Please attach the master document.")
exit function
End If

If UserProperties.Find("Client").Value = "" Then
Item_Send = False
ans = MsgBox("Please enter the client’s name.")
exit function
End If

'Set the HTMLBody of the item.
Item.HTMLBody = "HTMLBODYFont face=Arial size=5
color=#999999bJob Release/b/Fontbr/Font face=Verdana
size=2bClient: /b" & UserProperties.Find("Client").Value &_
"br/br/bOther Comments: /bbr/" & item.HTMLBody &_
"/Font/BODY/HTML"


End Function



Any help would be greatly appreciated.

Also, when the message is received it does not open in the Reading Pane,
giving a message "This item contains active content that cannot be
displayed in the Reading Pane. Open the item to read its contents." I
haven't looked into this yet, but some help in the right direction would
be great.

thanks in advance.


 




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
Delete Key quit working James Outlook Express 14 May 23rd 07 03:09 AM
Fw: Delete Key quit working Outlook Express 0 May 22nd 07 07:28 PM
Problem with DOUBLE LETTERS and Backspace Teched Outlook - General Queries 1 December 1st 06 05:11 PM
Problem with DOUBLE letters and Backspace Teched Outlook - General Queries 1 December 1st 06 05:10 PM
e-mail backspace deleting in body instead of in address field thommes@c2i.net Outlook - General Queries 0 October 18th 06 09:48 AM


All times are GMT +1. The time now is 09:30 PM.


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.
Child Trust Funds - Loans - Loan - Free Credit Report - Loans