Results 1 to 2 of 2
  1. #1
    mkenyon2 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    20

    Question Can't get ID after CreateRecord in Access 2010 Web database macro

    First off, this is an Access 2010 Web Database, so I can't do VBA code. I have to use this stupid macro editor.
    I do CreateRecord (Alias 'Build') with a SetField (Build.Asset, [NewAssetID])
    Then I do SetReturnVar (BuildingID, [Build].[ID])

    The record gets created in the table, but the SetReturnVar errors.

    Error is [Build] could not be found.

    I've also tried the tablename, and just the column ([ID]), all give the same error, cannot be found!

    Also tried LastCreateRecordIdentity and got 'LastcreateRecordIdentity': cannot find item.



    Umm... why?

  2. #2
    mkenyon2 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    20
    Ahh... I need to use [LastCreatedRecordIdentity] by itself. Not [LastCreatedRecordIdentity].[ID]. Glad the documentation is so clear on this. (Oh, wait, what documentation.)

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

Similar Threads

  1. Replies: 1
    Last Post: 01-05-2012, 02:34 PM
  2. Question access 2010 macro & open form
    By Grek in forum Access
    Replies: 3
    Last Post: 10-30-2011, 01:58 PM
  3. Access 2010 first macro - errors
    By DLParker in forum Forms
    Replies: 9
    Last Post: 10-16-2011, 04:17 PM
  4. Access 2010 Macro Help
    By RayMilhon in forum Access
    Replies: 3
    Last Post: 09-30-2011, 12:03 PM
  5. Access 2010 Macro
    By RayMilhon in forum Access
    Replies: 3
    Last Post: 09-28-2011, 11:37 AM

Tags for this Thread

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