Results 1 to 2 of 2
  1. #1
    Daisy509th's Avatar
    Daisy509th is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Location
    Central Texas
    Posts
    51

    Populating a Textbox

    The is a double post. I messed up and posted this twice and cant figure out how to delete this.



    I am truly sorry.




    Attachment 33130Attachment 33131

    I have a query that populates the Team Member Add/Remove form. I want to have the Team ID textbox populated automatically when adding a new record. I want to popluate team id from the combobox on the main menu 'Pick a Team' .

    I am sure this is done with VBA but I cant seem to figure it out.

    Thanks for any and all help

  2. #2
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,977
    When the info is first entered save it as a variable (or a tempvar)
    Then refer to that veriablee to populate the value elsewhere

    e.g. in first form
    Dim strTeam As String
    strTeam - Me.TeamID

    in second form
    Me.txtTeamID = strTeam

    A request for future posts. Could you crop your images to just use the relevant part
    Then you can omit the nav pane & database window & just show a larger version of the actual form(s)
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

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

Similar Threads

  1. Replies: 2
    Last Post: 03-16-2018, 09:44 AM
  2. Replies: 2
    Last Post: 12-22-2015, 09:09 PM
  3. Populating Textbox with Range of Time
    By athyeh in forum Programming
    Replies: 13
    Last Post: 08-13-2013, 02:52 PM
  4. Replies: 2
    Last Post: 04-20-2013, 03:37 AM
  5. Replies: 3
    Last Post: 08-03-2012, 02:37 AM

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