Results 1 to 5 of 5
  1. #1
    Lantis is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2012
    Posts
    3

    Identifier could not be found


    Hi, I'm pretty new to all this and this is the first time I look for help myself. I have a simple problem. I have two tables:

    1. one table has a number field for each item.
    2. the other field has a date/time field that is calculated using a macro

    This macro I am using should do this at the end:

    SetField
    Name: Order.Total
    Value = FormatDateTime(Now()+[Records].[RecordCount],2)

    Every time I try to do this, it gives me an error message saying: "The identifier '[Records].[RecordCount]' could not be found. But the field IS there!!!

    Thanks for any help.

    Lantis

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    It looks like the syntax of your FormatDateTime() function is incorrect?
    Check this thread [on another site] - it has some examples:
    http://www.pcreview.co.uk/forums/for...-t3949570.html
    Let me know if you need any more help.

  3. #3
    Lantis is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2012
    Posts
    3
    Hi, I had a look at the examples, but I am afraid I'm not that savvy to understand them completely. Could you please tell me how would you write that syntax? Thx.

  4. #4
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    Can you explain with a little more detail what exactly you need to achieve?
    When I first looked at your post, I was only focusing on the syntax of your FormatDateTime() function.

  5. #5
    Lantis is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2012
    Posts
    3
    This macro is a part of Before Update of a table so when I enter a record and then go to a new record it should automatically set the [Total] field to a certain date (now + the value in the field [RecordCount] (that is usually 2).

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

Similar Threads

  1. Using Social# as unique identifier
    By NEHicks in forum Database Design
    Replies: 3
    Last Post: 05-27-2011, 09:14 AM
  2. Restoring a lost field with a Unique Identifier
    By DBinazeski in forum Access
    Replies: 5
    Last Post: 12-20-2010, 08:02 AM
  3. generate next possible identifier
    By BayerMeister in forum Programming
    Replies: 5
    Last Post: 08-25-2010, 08:30 AM
  4. Drive type identifier
    By dcrake in forum Sample Databases
    Replies: 0
    Last Post: 08-19-2009, 04:15 AM
  5. Unique Record Identifier for MS SQL Server Tables
    By MGSP in forum Import/Export Data
    Replies: 2
    Last Post: 01-29-2006, 03:00 PM

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