Form on Reply or Forward

G

Guest

Sorry, Last line below.

Function SetDatabaseSetup()
If Item.UserProperties.Find("Database Setup None").Value = "False" Then
m_IMOSDatabase.Enabled = 1
m_ODMDatabase.Enabled = 1
m_ORMDatabase.Enabled = 1
m_UEHDatabase.Enabled = 1
m_SEQDatabase.Enabled = 1
m_AuditDatabase.Enabled = 1
Else
m_IMOSDatabase.Enabled = 0
 
S

Sue Mosher [MVP-Outlook]

I am getting "Object required: 'my variable name' Line No:212".

That error, therefore, means that this statement:

m_IMOSDatabase.Enabled = 0

contains an uninstantiated object. Since there is only one object in that statement, the next step in your troubleshooting is to look in your code to see (a) where m_IMOSDatabase is declared, (b) where m_IMOSDatabase is instantiated, and (c) whether m_IMOSDatabase is set to Nothing before you need it in line 212. (b) is the most likely culprit given what you've told us so far. When you find the relevant statement(s), apply similar logic to them to determine whether they can correctly produce the m_IMOSDatabase object you need.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
N

NV

Hi Sue

I have a custom outlook 2003 form published to the Org. Form library..
The form works fine, except when someone tries to forward it, they are not
able to enter their comments / verbiage in the open space outside the form
format.

Also about your answer below... what field should the actions item refer
to... when i double click on forward under the Actions page of the form,
under the This action creates a form of the following type... Form Name...
should I select Forms and select the published form name from the Org
Library? or is it any other setting that I need to change like when
responding...?
 
S

Sue Mosher [MVP]

Yes, as I wrote earlier, the form associated with the Forward action needs
to be the form you've published to the Org Forms libary. Any other changes
to the settings for the action are optional.

Let us know if you have other problems after you make that change and
republish the form. (Don't forget to increment the version number before
forwarding.)

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 
N

NV

How about getting the User's to be able to enter free flow verbiage outside
the form limits, on the form body i.e. similar to reply / reply all or also
in case of forward.

Is there any specific parameter that I need to set.

I want to accomplish all this in one go and test it out.
 
S

Sue Mosher [MVP]

A place for users to enter text has be be present as part of your design. If
you removed the normal message body control, then you'd need to add it back
in or put a text box control on the form and bind it to an Outlook property.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 
N

NV

Can i make such a field visible only on Forwarding / Reply all...etc.

If yes how can i achieve it with minimal programming, as such I am not a
forms programming expert.
 
S

Sue Mosher [MVP]

You'll have to get your feet wet in programming to accomplish this. For each
control that you don't want to show, put code in the Item_Open event handler
to change the value of its Visible property, e.g.:

Function Item_Open
If ItemIsForwardOrReply() Then
Set myinspector = Item.GetInspector
Set myPage1 = myInspector.ModifiedFormPages("General")
Set txtMyTextBox = myPage1.Controls("txtMyTextBox")
txtMyTextBox.Visible = False
End If
End Function

You get the page names and control names from looking at your actual form
design. See http://www.outlookcode.com/article.aspx?ID=38 for more
information on working with control properties.

The ItemIsForwardOrReply() function tests certain property values to try to
determine if the item is a forward or reply:

Function ItemIsForwardOrReply()
If Item.Sent = False Then
' item is an unsent message
strLeft = UCase(Left(Item.Subject, 3))
If strLeft = "FW:" or strLeft = "RE:" Then
ItemIsForwardOrReply = True
Else
ItemIsForwardOrReply = True
End If
End If
End Function
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 
N

NV

Hi Sue

How can I and where should I add back the normal message body contol, or
make sure that it is not currently present.
The current form uses P1, and there is no other tabs with any fields.

Thanks
Nimish
 
S

Sue Mosher [MVP]

Depending on the type of form, it will be listed in the Field Chooser as
Message or Notes. Just drag that field back onto the custom form page.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top