Results 1 to 4 of 4
  1. #1
    Dega is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jan 2010
    Location
    Calgary, AB
    Posts
    73

    Left () function in a query

    INSERT INTO tblRoomGroups ( RoomGroupName )


    SELECT [Forms]![frmCustomers]![left("firstname",1)] & " " & Forms!frmCustomers!lastname AS Expr1;

    The above does nothing for the firstname and other attempts give me various results which don't work.

    Trying to get the first letter of the firstname with the lastname.

    Thanks

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Try

    INSERT INTO tblRoomGroups ( RoomGroupName )
    SELECT Left([Forms]![frmCustomers]![firstname], 1) & " " & Forms!frmCustomers!lastname AS Expr1;
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Dega is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jan 2010
    Location
    Calgary, AB
    Posts
    73
    Thank you!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    No problemo!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Query filters slower, if left open
    By Frenotx in forum Queries
    Replies: 5
    Last Post: 01-25-2012, 03:25 PM
  2. Update with left function
    By yerromnitsuj in forum Access
    Replies: 3
    Last Post: 01-09-2012, 03:41 PM
  3. Undefined Function "Left" in Expression
    By krueck in forum Access
    Replies: 4
    Last Post: 09-30-2011, 10:50 AM
  4. Replies: 3
    Last Post: 02-02-2011, 01:00 PM
  5. Left function with various lenth of digits
    By mohsin74 in forum Queries
    Replies: 0
    Last Post: 07-10-2007, 02:00 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