Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 26th, 2012, 08:21 AM
Registered User
 
Join Date: Dec 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Data macro could not be found

Hi,

i am running a modified Northwind Traders database and have come across an error that i have not seen before, when i add a purchase order and select the product, the Macro looks up the item price and insert it in the field, but now it is not working, it is obviously something i have done, but i have been modifying this database for some time and cant see any differences between a working backup and the none working copy, i have made numerous other changes to the database so its not as simple as reverting back to the backup, unless i have to.

Code:
Products.GetStandardCost	{CC671F14-88F5-45BD-BF65-8CB6CA5E1DA3}	-8979	Execution	Macro	The data macro 'Products.GetStandardCost' could not be found.		25/12/2012 17:03:45
PurchaseOrderLineItem : cboProductID : AfterUpdate
Code:
OnError
GotoMacro ErrorHandler
/*Determine standard cost for specfied product*/
If Not (IsNull([cboProductID])) Then
RunDataMacro
Macro Name Products.GetStandardCost
Parameters prmProductID
SetProperty ControlName txtUnitCost
Property Value
Value=[ReturnVars]![retStandardCost]
Else UndoRecord
DeleteRecord
RunMacro
MacroName Utilityies.ErrorAlert

Last edited by RoyLittle0; December 26th, 2012 at 08:33 AM..
 
Old December 26th, 2012, 01:17 PM
Registered User
 
Join Date: Dec 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If i run the macro from the design view i get the error "The object doesn't contain the Automation object 'cboProductID.'

I have copied the form and macros from my backup, which works to this database and that doesn't work either, so it looks like the fault is not with the form/macro but with something else?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Macro to get data from another table Suzie2012 Access 5 April 17th, 2015 09:24 AM
Referencing data from another table to generate SendMail Data Macro G_S Access 0 November 13th, 2012 11:12 PM
No Data Found peace95 BOOK: Beginning Oracle Application Express ISBN: 9780470388372 3 June 23rd, 2009 06:00 AM
macro no get data from web.... sal21 VB How-To 0 November 9th, 2007 04:29 PM
NO DATA FOUND nkrust Oracle 1 February 15th, 2007 07:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.