Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 42
  1. #16
    316854 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2013
    Posts
    44
    I'm lost.

    How can I get this:

    1234 N Main Ave Los Angeles CA 90001-1234

    to show up in the field next to this:

    John Smith @ 1234 N Main Ave Los Angeles CA 90001-1234

    inside the form?

    I was able to do it inside a query, but how do I get that information inside the form?

    Thanks


  2. #17
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,900
    If query is in the form RecordSource, can bind a textbox to the constructed field.
    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.

  3. #18
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    See the example dB in Post#15

  4. #19
    316854 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2013
    Posts
    44
    I understand now.

    I was trying to have the record source for the form be from a table and a query.

    One more question. In datasheet view, I'm copying a list of addresses. How can I not copy the name of the field with the chunk of addresses I've highlighted?

    Thanks

  5. #20
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,900
    You want to copy/paste from Access table to Excel? Sorry, the field name tags along. No control over that. Copy/paste to Word and the table name also tags along.
    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.

  6. #21
    316854 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2013
    Posts
    44
    How can I get this:

    John Smith

    to show up in the field next to this:

    John Smith @ 1234 N Main Ave Los Angeles CA 90001-1234

    Thanks

  7. #22
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,900
    You said you already concatenated those fields with calc in query. Bind form to the query and bind textbox to that calculated field.

    Or if you bind directly to table, do the calculation in textbox ControlSource property.
    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.

  8. #23
    316854 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2013
    Posts
    44
    What is the formula?

  9. #24
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,900
    I am confused. In post 16 you say "I was able to do it inside a query,..."

    Just what did you do inside query?
    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.

  10. #25
    316854 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2013
    Posts
    44
    Address: Trim(Mid([Location1a],InStr(Nz([Location1a],""),"@")+1))

    I want to keep what's behind the @ this time.

    Thanks

  11. #26
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,900
    If you just want to concatenate fields:

    [field1] & " " & [field2]
    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.

  12. #27
    316854 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2013
    Posts
    44
    No, concatenate will not work.

    John Smith @ 1234 N Main Ave Los Angeles CA 90001-1234

    I want "John Smith" to be extracted and put in another field.

    Thanks

  13. #28
    316854 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2013
    Posts
    44
    John Smith @ 1234 N Main Ave Los Angeles CA 90001-1234

    I want only "John Smith" to be copied to another field.

    I want everything before the @ sign to be listed in another field.

    Thanks

  14. #29
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,900
    So you want to parse again. More string manipulation, similar to the code you have already been given. Might want to get really familiar with string manipulation functions. http://msdn.microsoft.com/en-us/library/dd789093.aspx

    Left([fieldname], InStr([fieldname], "@") - 1)
    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.

  15. #30
    316854 is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2013
    Posts
    44
    Thank you!

    Thank you for the link as well.

    I'm not terrible with excel formulas, but I'm not familiar with access functions yet.

    Thanks

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

Similar Threads

  1. Using an Excel Formula in Access
    By BEI77 in forum Access
    Replies: 6
    Last Post: 05-08-2014, 05:08 PM
  2. Anyone able to translate a formula from excel?
    By dniezby in forum Programming
    Replies: 10
    Last Post: 05-21-2013, 01:10 PM
  3. Excel Formula into Access Query
    By dr4ke in forum Queries
    Replies: 7
    Last Post: 06-25-2012, 06:46 AM
  4. Excel Formula Needed in Access
    By bmschaeffer in forum Queries
    Replies: 4
    Last Post: 01-18-2012, 01:13 PM
  5. Replies: 0
    Last Post: 09-03-2009, 01:58 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