Page 3 of 3 FirstFirst 123
Results 31 to 33 of 33
  1. #31
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    I may have found it (again) - another reserved word MS Access doesn't like as a field name- order



    When I run your exact code using "order", I get the syntax error. But when I change it to "Order_Number", I get the errors I would expect, using my database like unknown field names (as it happens, I have a table called eventlog).


    So, change "order" to something else, like you did with "date", and see what happens.

  2. #32
    ULMA is offline Novice
    Windows 7 64bit Access 2000
    Join Date
    Feb 2015
    Posts
    14
    Great John,
    I just wrapped order in brackets [order] and it worked! Thank you so much! I will try the same with date and see if it will take it.
    I know that I should not use those reserved words but these were there already and cannot change because of the many forms tied to them.
    I really enjoyed chatting with you and again sorry for time.
    ULMA

  3. #33
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I use Rick Fisher's Find & Replace add-in for global mods like changing a field name. Saved my sanity more than once.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Page 3 of 3 FirstFirst 123
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 03-05-2013, 11:17 AM
  2. Syntax Error: Insert Into statement in VBA
    By Kimbertha in forum Programming
    Replies: 1
    Last Post: 07-24-2012, 05:02 PM
  3. Replies: 7
    Last Post: 08-17-2011, 01:49 PM
  4. INSERT INTO Syntax Error
    By eww in forum Programming
    Replies: 1
    Last Post: 04-06-2011, 10:28 AM
  5. Syntax Error In Insert Into Statement
    By frankvfox in forum Queries
    Replies: 1
    Last Post: 09-09-2008, 12:35 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