Hi Take a look at
http://www.systomatics.com/Projects/009UploadJournals/proj09.htm The idea is to declare a new variable as an object and set the datasource to this new variable. Now you can call even datasource.AxKnowledgeVillageRocks(), the code will compile (and fail at runtime if the method is missing). Regards Harry Deshpande http://blogs.msdn.com/axperf This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm" The code provided (if any) may be written from the point of view of a third party and the programming style/development standards may suit such a point of view. From: Axapta-Knowledge-Village@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Scott Sent: Thursday, May 08, 2008 6:26 AM To: Axapta-Knowledge-Village@yahoogroups.com Subject: [Axapta-Knowledge-Village] Accessing form data source methods from design I would have thought this was fairly straightforward but it's got me puzzled. I want to call a method I have created in a form data source from a button click. I would have thought I just use DataSourceName.MethodName() but the method is not available. Suggestions please? Regards Tom