Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    StephenB is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Mar 2014
    Posts
    8

    Hi Trevor,
    That is great work, it is nearly there.
    A couple of questions;
    Does the following concatenate the fields into a field called 'Your_Results'
    me.Your_Result = [Genus] & " " & [Spicies] & " " & [NameOtherValue]

    and can I make the next field FamilyID instead of back to Genus?
    docmd.gotocontrol "Genus" ' back to the start

    And lastly the field 'NameOtherValue' does not always have data entered, when it is not entered and i go to the next record it locks Genus and species fields and only 'NameOtherValue' is ready for data input.

    Thinking outside the square, can the field that concatenates all three fields only update once the three fields have been filled or tabbed through? This would also probably stop the underlying issue?

    Really appreciate your expertise.

    Regards
    Stephen

  2. #17
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,956
    I still suggest don't bother with VBA and just concatenate the fields with expression in query or textbox or even in a calculated field in table.
    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
    trevor40's Avatar
    trevor40 is offline Advanced db Manager
    Windows XP Access 2003
    Join Date
    Feb 2014
    Location
    Australia
    Posts
    402
    Does the following concatenate the fields into a field called 'Your_Results'
    YES me.Your_Result = [Genus] & " " & [Spicies] & " " & [NameOtherValue]
    and can I make the next field FamilyID instead of back to Genus?
    YES docmd.gotocontrol "FamilyID" ' back to the startI only did this to force entry into the next field, you can enable/ disable them as you like, But moving to another field is the easiest, then disable NameOtherValue and goto another field. ensures only one entry into your_result. Perhaps have a button to re-enable them if you want to change the entry, or put -
    me.Your_Result = [Genus] & " " & [Spicies] & " " & [NameOtherValue] on the onclick of a button to place the result

    And lastly the field 'NameOtherValue' does not always have data entered, when it is not entered and i go to the next record it locks Genus and species fields and only 'NameOtherValue' is ready for data input.
    this may need abutton to put the result into your_result. If aay fields are empty.

    YES see above red text
    Thinking outside the square, can the field that concatenates all three fields only update once the three fields have been filled or tabbed through? This would also probably stop the underlying issue?

    see how you go...

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

Similar Threads

  1. Replies: 3
    Last Post: 12-27-2013, 02:33 PM
  2. Concatenate a field to appear on a form
    By snowboarder234 in forum Forms
    Replies: 9
    Last Post: 06-05-2013, 02:01 PM
  3. Replies: 7
    Last Post: 12-22-2012, 06:31 PM
  4. Replies: 1
    Last Post: 11-01-2011, 05:55 PM
  5. HELP! Set Focus to Continuous Sub Form Field
    By asmith78 in forum Programming
    Replies: 1
    Last Post: 09-09-2011, 02:27 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