Results 1 to 3 of 3
  1. #1
    izzy2001 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Nov 2011
    Posts
    2

    access lookup datamacro

    seeking anyone who knows the answer to this one. I am trying replicate the northwind web database macro called getproductname getproductlist which is on the products table. this macro has a simple lookup action which looks up a record by a parameter being sent. (this comes the after update of of a form.



    the customer order form has a productid combo box. on its after update it finds the product list. this UI macro just passess the product id to the data macro on the table and looks up the price for that id. then sets the value on the form. simple right? however i consistently get an error from the data macro on the table which says the "the identifier (enter field name here) could not be found"

    in my case im selecting id and productname from my table. the syntax is correct. but when i run the macro i get "the identifier productname could not be found. ive been struggling with this for hours. and im using a working sample as an example. it simply wont work for me. can anyone help me out?

  2. #2
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481

    Could you please post the macro?

    Quote Originally Posted by izzy2001 View Post
    seeking anyone who knows the answer to this one. I am trying replicate the northwind web database macro called getproductname getproductlist which is on the products table. this macro has a simple lookup action which looks up a record by a parameter being sent. (this comes the after update of of a form.

    the customer order form has a productid combo box. on its after update it finds the product list. this UI macro just passess the product id to the data macro on the table and looks up the price for that id. then sets the value on the form. simple right? however i consistently get an error from the data macro on the table which says the "the identifier (enter field name here) could not be found"

    in my case im selecting id and productname from my table. the syntax is correct. but when i run the macro i get "the identifier productname could not be found. ive been struggling with this for hours. and im using a working sample as an example. it simply wont work for me. can anyone help me out?
    ------------------------------------------------------------------------------------------------------------------------------
    There are just too many possibilities without seeing some specifics.

  3. #3
    izzy2001 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Nov 2011
    Posts
    2
    the error indicates it cant field the field in the table. if i change this to return a value instead of a field name, the value is set on the the form as it should. so we know its not the UI macro on the form. that works. the questions is why the data macro cannot look up the field name in the expression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Import to Excel from Access column of LOOKUP data type
    By Derek in forum Import/Export Data
    Replies: 1
    Last Post: 12-06-2010, 06:27 PM
  2. Lookup or new
    By asmith in forum Forms
    Replies: 6
    Last Post: 09-29-2010, 12:58 PM
  3. Many To Many lookup
    By todavy in forum Forms
    Replies: 0
    Last Post: 12-15-2009, 09:27 AM
  4. Replies: 1
    Last Post: 10-06-2009, 02:00 AM
  5. Microsoft Access Lookup tables
    By bitert01 in forum Forms
    Replies: 1
    Last Post: 02-20-2009, 02:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums