Microsoft Knowledge Base Email Alertz

KBAlertz.com: How to change the Memo field in Microsoft Office Small Business Accounting by using the Small Business Accounting Software Development Kit (SDK)

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **


Bug Tracking Software
For bug tracking software or defect tracking software or issue tracking software, visit Axosoft.


Community Site



We Send hundreds of thousands of emails using ASP.NET Email



Expert Web Design & Graphic Design
Design44.com

ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 917038 - Last Review: February 9, 2007 - Revision: 2.0

How to change the Memo field in Small Business Accounting 2006, in Accounting Professional 2007, and in Accounting Express 2007 by using the Small Business Accounting 2006 Software Development Kit (SDK)

INTRODUCTION

This article describes how to change the Memo field in Microsoft Office Small Business Accounting 2006, in Microsoft Office Accounting Professional 2007, and in Microsoft Office Accounting Express 2007 by using the Microsoft Office Small Business Accounting 2006 Software Development Kit (SDK).

MORE INFORMATION

In the Small Business Accounting 2006, Accounting Professional 2007, and Accounting Express 2007 user interface, there are many forms that contain a Memo field. Among the forms that contain this field are the following forms:
  • Purchase Order
  • Vendor Bill
  • Item Receipt
  • Quote
  • Sales Order
  • Invoice
The Memo field is accessed programmatically through the Small Business Accounting 2006 SDK. Any object that implements the "Microsoft.BusinessSolutions.SmallBusinessAccounting.IContract" interface has a property that is named InternalComments. InternalComments is the property that is used to obtain and to set the Memo field that is in the user interface.

The following code sample demonstrates how to retrieve a purchase order from the Northwind Traders company.
Note The Northwind Traders company is the sample product company that is supplied with Small Business Accounting.
After you open the Northwind Traders company, the following changes occur:
  • The value of the Memo field is set to this is our new memo value.
  • The purchase order is saved back to the database.
You can verify the new value that is in the Memo field by viewing the field in the purchase order in Small Business Accounting 2006, in Accounting Professional 2007, and in Accounting Express 2007.
// This code contains hard-coded values that work in Northwind Traders.

ISmallBusinessInstance iSbi = // Enter code to initialize iSbi here.

IPurchaseOrder ipo = (IPurchaseOrder) GetDocumentByDisplay(iSbi.PurchaseOrders, "11");
ipo.InternalComments = "this is our new memo value";

ipo.Save();

static IDocument GetDocumentByDisplay(IBaseMasterView view, string displayNum)
{
	IDocument document = null;
	DataRow row = null;

	if (view != null)
	{
		DataView dv = view.DataView; 

		dv.RowFilter = String.Format("DocumentDisplayNumber='{0}'", displayNum);

		if (dv.Count > 0)
		{
			row = dv[0].Row;
		}
	}

	if (row != null)
	{
		document = (IDocument) view.GetByDataRow(row);
	}

	return document;
}

APPLIES TO
  • Microsoft Office Accounting Professional 2007
  • Microsoft Office Accounting Express 2007
  • Microsoft Office Small Business Accounting 2006, when used with:
    • Microsoft Office Small Business Accounting 2006 Software Development Kit 1.2
Keywords: 
kbhowto kbmbsmigrate KB917038
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please